-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPdfTemplateEditor.php
27 lines (23 loc) · 1.25 KB
/
PdfTemplateEditor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
# Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly.
//if (!defined('MEDIAWIKI')) {
// echo <<<EOT
//To install my extension, put the following line in LocalSettings.php:
//require_once( "$IP/extensions/PdfTemplateEditor/PdfTemplateEditor.php" );
//EOT;
// exit( 1 );
//}
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'PdfTemplateEditor',
'author' => 'Thimo Britsch',
'url' => '',
'descriptionmsg' => 'PdfTemplateEditor-desc',
'version' => '0.0.0',
);
$dir = dirname(__FILE__) . '/';
$wgAutoloadClasses['SpecialPdfTemplateEditor'] = $dir . 'SpecialPdfTemplateEditor.php'; # Location of the SpecialMyExtension class (Tell MediaWiki to load this file)
$wgExtensionMessagesFiles['PdfTemplateEditor'] = $dir . 'PdfTemplateEditor.i18n.php'; # Location of a messages file (Tell MediaWiki to load this file)
$wgExtensionMessagesFiles['PdfTemplateEditorAlias'] = $dir . 'PdfTemplateEditor.alias.php'; # Location of an aliases file (Tell MediaWiki to load this file)
$wgSpecialPages['PdfTemplateEditor'] = 'SpecialPdfTemplateEditor'; # Tell MediaWiki about the new special page and its class name
$wgSpecialPageGroups['PdfTemplateEditor'] = 'other';