Index: trunk/extensions/AdminLinks/AdminLinks_body.php |
— | — | @@ -15,7 +15,11 @@ |
16 | 16 | */ |
17 | 17 | function __construct() { |
18 | 18 | parent::__construct( 'AdminLinks' ); |
19 | | - wfLoadExtensionMessages( 'AdminLinks' ); |
| 19 | + // deprecated in MW 1.16 |
| 20 | + global $wgVersion; |
| 21 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 22 | + wfLoadExtensionMessages( 'AdminLinks' ); |
| 23 | + } |
20 | 24 | global $wgUser; |
21 | 25 | $this->skin = $wgUser->getSkin(); |
22 | 26 | } |
— | — | @@ -85,7 +89,11 @@ |
86 | 90 | global $wgUser; |
87 | 91 | // if user is a sysop, add link |
88 | 92 | if ( $wgUser->isAllowed( 'adminlinks' ) ) { |
89 | | - wfLoadExtensionMessages( 'AdminLinks' ); |
| 93 | + // deprecated in MW 1.16 |
| 94 | + global $wgVersion; |
| 95 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 96 | + wfLoadExtensionMessages( 'AdminLinks' ); |
| 97 | + } |
90 | 98 | $al = SpecialPage::getTitleFor( 'AdminLinks' ); |
91 | 99 | $href = $al->getLocalURL(); |
92 | 100 | $admin_links_vals = array( |