-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDonateBoxInSidebar.php
25 lines (24 loc) · 957 Bytes
/
DonateBoxInSidebar.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
<?php
/**
* DonateBoxInSidebar
*
* @file
* @ingroup Extensions
* @author Suriyaa Sundararuban <[email protected]> (https://about.suriyaa.tk/)
* @license https://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @link https://www.mediawiki.org/wiki/Extension:DonateBoxInSidebar Documentation
*/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'DonateBoxInSidebar' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['DonateBoxInSidebar'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['DonateBoxInSidebar'] = __DIR__ . '/DonateBoxInSidebar.i18n.php';
// wfWarn(
// 'Deprecated PHP entry point used for DonateBoxInSidebar extension. ' .
// 'Please use wfLoadExtension instead, ' .
// 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
// );
return;
} else {
die( 'This version of the DonateBoxInSidebar extension requires MediaWiki 1.25+' );
}