Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/175214
Change subject: Converting to globals.
......................................................................
Converting to globals.
* This will add support for composer.
Change-Id: I15cc8ac2b5008364d958a2d847823124c1f27993
---
M WikiEditor.php
M i18n/id.json
2 files changed, 15 insertions(+), 14 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor
refs/changes/14/175214/1
diff --git a/WikiEditor.php b/WikiEditor.php
index 723c4bf..afc5bc4 100644
--- a/WikiEditor.php
+++ b/WikiEditor.php
@@ -16,7 +16,7 @@
/* Configuration */
// Each module may be configured individually to be globally on/off or user
preference based
-$wgWikiEditorFeatures = array(
+$GLOBALS['wgWikiEditorFeatures'] = array(
/* Textarea / i-frame compatible (OK to deploy) */
@@ -38,7 +38,7 @@
/* Setup */
-$wgExtensionCredits['other'][] = array(
+$GLOBALS['$wgExtensionCredits']['other'][] = array(
'path' => __FILE__,
'name' => 'WikiEditor',
'author' => array( 'Trevor Parscal', 'Roan Kattouw', 'Nimish Gautam',
'Adam Miller' ),
@@ -46,22 +46,22 @@
'url' => 'https://www.mediawiki.org/wiki/Extension:WikiEditor',
'descriptionmsg' => 'wikieditor-desc',
);
-$wgAutoloadClasses['WikiEditorHooks'] = __DIR__ . '/WikiEditor.hooks.php';
-$wgMessagesDirs['WikiEditor'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['WikiEditor'] = __DIR__ . '/WikiEditor.i18n.php';
-$wgHooks['EditPage::showEditForm:initial'][] =
'WikiEditorHooks::editPageShowEditFormInitial';
-$wgHooks['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
-$wgHooks['ResourceLoaderGetConfigVars'][] =
'WikiEditorHooks::resourceLoaderGetConfigVars';
-$wgHooks['MakeGlobalVariablesScript'][] =
'WikiEditorHooks::makeGlobalVariablesScript';
-$wgHooks['EditPageBeforeEditToolbar'][] =
'WikiEditorHooks::EditPageBeforeEditToolbar';
+$GLOBALS['wgAutoloadClasses']['WikiEditorHooks'] = __DIR__ .
'/WikiEditor.hooks.php';
+$GLOBALS['wgMessagesDirs']['WikiEditor'] = __DIR__ . '/i18n';
+$GLOBALS['wgExtensionMessagesFiles']['WikiEditor'] = __DIR__ .
'/WikiEditor.i18n.php';
+$GLOBALS['wgHooks']['EditPage::showEditForm:initial'][] =
'WikiEditorHooks::editPageShowEditFormInitial';
+$GLOBALS['wgHooks']['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
+$GLOBALS['wgHooks']['ResourceLoaderGetConfigVars'][] =
'WikiEditorHooks::resourceLoaderGetConfigVars';
+$GLOBALS['wgHooks']['MakeGlobalVariablesScript'][] =
'WikiEditorHooks::makeGlobalVariablesScript';
+$GLOBALS['wgHooks']['EditPageBeforeEditToolbar'][] =
'WikiEditorHooks::EditPageBeforeEditToolbar';
-$wikiEditorTpl = array(
+$GLOBALS['wikiEditorTpl'] = array(
'localBasePath' => __DIR__ . '/modules',
'remoteExtPath' => 'WikiEditor/modules',
'group' => 'ext.wikiEditor',
);
-$wgResourceModules += array(
+$GLOBALS['wgResourceModules'] += array(
/* WikiEditor jQuery plugin Resources */
diff --git a/i18n/id.json b/i18n/id.json
index 0f4a0b0..ad2142c 100644
--- a/i18n/id.json
+++ b/i18n/id.json
@@ -6,7 +6,8 @@
"Irwangatot",
"IvanLanin",
"Iwan Novirion",
- "Kenrick95"
+ "Kenrick95",
+ "William Surya Permana"
]
},
"wikieditor": "Antarmuka penyuntingan teks wiki canggih",
@@ -81,7 +82,7 @@
"wikieditor-toolbar-tool-reference-example": "Sisipkan teks catatan
kaki di sini",
"wikieditor-toolbar-tool-reference-cancel": "Batalkan",
"wikieditor-toolbar-tool-reference-title": "Masukkan referensi",
- "wikieditor-toolbar-tool-reference-insert": "Masukkan",
+ "wikieditor-toolbar-tool-reference-insert": "Sisipkan",
"wikieditor-toolbar-tool-reference-text": "Teks referensi",
"wikieditor-toolbar-tool-signature": "Tanda tangan dan waktu",
"wikieditor-toolbar-section-advanced": "Lanjutan",
--
To view, visit https://gerrit.wikimedia.org/r/175214
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I15cc8ac2b5008364d958a2d847823124c1f27993
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits