MediaWiki REL1_34
OATHAuth.php
Go to the documentation of this file.
1<?php
15if ( function_exists( 'wfLoadExtension' ) ) {
16 wfLoadExtension( 'OATHAuth' );
17
18 $wgMessagesDirs['OATHAuth'] = __DIR__ . '/i18n';
19 $wgExtensionMessagesFiles['OATHAuthAlias'] = __DIR__ . '/OATHAuth.alias.php';
20
21 wfWarn(
22 'Deprecated PHP entry point used for OATHAuth extension. Please use wfLoadExtension instead, ' .
23 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
24 );
25
26 return true;
27} else {
28 die( 'This version of the OATHAuth extension requires MediaWiki 1.32+' );
29}
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfLoadExtension( $ext, $path=null)
Load an extension.
$wgExtensionMessagesFiles['ReplaceTextAlias']
$wgMessagesDirs['ReplaceText']