Be compatible with MW < 1.25
[T119942Repr.git] / T119942Repr.php
blob7c2a59d120bd755abc40d0ad6ef1bd1abdf47fd5
1 <?php
3 if ( function_exists( 'wfLoadExtension' ) ) {
4 wfLoadExtension( 'T119942Repr' );
5 // Keep i18n globals so mergeMessageFileList.php doesn't break
6 $wgMessagesDirs['T119942Repr'] = __DIR__ . '/i18n';
7 wfWarn(
8 'Deprecated PHP entry point used for T119942Repr extension. Please use wfLoadExtension ' .
9 'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.'
11 return true;
12 } else {
13 $wgMessagesDirs['T119942Repr'] = __DIR__ . '/i18n';
14 $wgHooks['SkinAfterContent'][] = 'T119942ReprHooks::onSkinAfterContent';