mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
Added support for new wfLoadExtension() in MW 1.25
Change-Id: Ia90e96b68e4bfe4ac28cf2ae04ab2069240a7770
This commit is contained in:
parent
569d95ccf4
commit
45e7d3a7cc
|
@ -17,6 +17,18 @@
|
|||
* replacement, since it is not easily reversible.
|
||||
*/
|
||||
|
||||
if ( function_exists( 'wfLoadExtension' ) ) {
|
||||
wfLoadExtension( 'ReplaceText' );
|
||||
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
||||
$wgMessagesDirs['ReplaceText'] = __DIR__ . '/i18n';
|
||||
$wgExtensionMessagesFiles['ReplaceTextMagic'] = __DIR__ . '/ReplaceText.i18n.magic.php';
|
||||
/* wfWarn(
|
||||
'Deprecated PHP entry point used for External Data extension. Please use wfLoadExtension instead, ' .
|
||||
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
||||
); */
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !defined( 'MEDIAWIKI' ) ) { die(); }
|
||||
|
||||
define( 'REPLACE_TEXT_VERSION', '1.1.1' );
|
||||
|
|
46
extension.json
Normal file
46
extension.json
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"name": "Replace Text",
|
||||
"version": "1.1.1",
|
||||
"author": [
|
||||
"Yaron Koren",
|
||||
"Niklas Laxström",
|
||||
"..."
|
||||
],
|
||||
"url": "https://www.mediawiki.org/wiki/Extension:Replace_Text",
|
||||
"descriptionmsg": "replacetext-desc",
|
||||
"type": "specialpage",
|
||||
"GroupPermissions": {
|
||||
"sysop": {
|
||||
"replacetext": true
|
||||
}
|
||||
},
|
||||
"AvailableRights": [
|
||||
"replacetext"
|
||||
],
|
||||
"SpecialPages": {
|
||||
"ReplaceText": "SpecialReplaceText"
|
||||
},
|
||||
"JobClasses": {
|
||||
"replaceText": "ReplaceTextJob"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"ReplaceText": [
|
||||
"i18n"
|
||||
]
|
||||
},
|
||||
"ExtensionMessagesFiles": {
|
||||
"ReplaceTextAlias": "ReplaceText.alias.php"
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"ReplaceTextHooks": "ReplaceText.hooks.php",
|
||||
"SpecialReplaceText": "SpecialReplaceText.php",
|
||||
"ReplaceTextJob": "ReplaceTextJob.php",
|
||||
"ReplaceTextSearch": "ReplaceTextSearch.php"
|
||||
},
|
||||
"Hooks": {
|
||||
"AdminLinks": [
|
||||
"ReplaceTextHooks::addToAdminLinks"
|
||||
]
|
||||
},
|
||||
"manifest_version": 1
|
||||
}
|
Loading…
Reference in a new issue