mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 16:25:23 +00:00
Remove PHP entry point
Change-Id: Idc36e0dc46d088ddab651ab4baf92c5feda8e6b7
This commit is contained in:
parent
cd09aad162
commit
0b36d95afd
29
OATHAuth.php
29
OATHAuth.php
|
@ -1,29 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* OATHAuth extension - Support for HMAC based one time passwords
|
||||
*
|
||||
*
|
||||
* For more info see https://mediawiki.org/wiki/Extension:OATHAuth
|
||||
*
|
||||
* @file
|
||||
* @ingroup Extensions
|
||||
* @author Ryan Lane <rlane@wikimedia.org>
|
||||
* @copyright © 2012 Ryan Lane
|
||||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
if ( function_exists( 'wfLoadExtension' ) ) {
|
||||
wfLoadExtension( 'OATHAuth' );
|
||||
|
||||
$wgMessagesDirs['OATHAuth'] = __DIR__ . '/i18n';
|
||||
$wgExtensionMessagesFiles['OATHAuthAlias'] = __DIR__ . '/OATHAuth.alias.php';
|
||||
|
||||
wfWarn(
|
||||
'Deprecated PHP entry point used for OATHAuth extension. Please use wfLoadExtension instead, ' .
|
||||
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
||||
);
|
||||
|
||||
return true;
|
||||
} else {
|
||||
die( 'This version of the OATHAuth extension requires MediaWiki 1.32+' );
|
||||
}
|
Loading…
Reference in a new issue