Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/77041
Change subject: VisualEditor.hooks: Sort keys
......................................................................
VisualEditor.hooks: Sort keys
Change-Id: I68f9258f739532ca30d2fdc91e62d6a2f87a5180
---
M VisualEditor.hooks.php
1 file changed, 13 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/41/77041/1
diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php
index b03171b..cfa19d0 100644
--- a/VisualEditor.hooks.php
+++ b/VisualEditor.hooks.php
@@ -106,12 +106,12 @@
global $wgStylePath, $wgContLang;
$vars['wgVisualEditor'] = array(
'isPageWatched' => $out->getUser()->isWatched(
$out->getTitle() ),
- 'pageLanguageCode' =>
$out->getTitle()->getPageLanguage()->getHtmlCode(),
- 'pageLanguageDir' =>
$out->getTitle()->getPageLanguage()->getDir(),
// Same as in Linker.php
'magnifyClipIconURL' => $wgStylePath .
'/common/images/magnify-clip' .
- ( $wgContLang->isRTL() ? '-rtl' : '' ) . '.png'
+ ( $wgContLang->isRTL() ? '-rtl' : '' ) . '.png',
+ 'pageLanguageCode' =>
$out->getTitle()->getPageLanguage()->getHtmlCode(),
+ 'pageLanguageDir' =>
$out->getTitle()->getPageLanguage()->getDir(),
);
return true;
@@ -121,18 +121,21 @@
* Adds extra variables to the global config
*/
public static function onResourceLoaderGetConfigVars( array &$vars ) {
- global $wgVisualEditorEnableEventLogging,
$wgVisualEditorPluginModules,
- $wgVisualEditorEnableExperimentalCode,
$wgVisualEditorTabLayout,
- $wgVisualEditorDisableForAnons,
$wgVisualEditorNamespaces;
+ global $wgVisualEditorDisableForAnons,
+ $wgVisualEditorEnableEventLogging,
+ $wgVisualEditorEnableExperimentalCode,
+ $wgVisualEditorNamespaces,
+ $wgVisualEditorPluginModules,
+ $wgVisualEditorTabLayout;
$vars['wgVisualEditorConfig'] = array(
- 'enableExperimentalCode' =>
$wgVisualEditorEnableExperimentalCode,
- 'enableEventLogging' =>
$wgVisualEditorEnableEventLogging,
- 'tabLayout' => $wgVisualEditorTabLayout,
'disableForAnons' => $wgVisualEditorDisableForAnons,
+ 'enableEventLogging' =>
$wgVisualEditorEnableEventLogging,
+ 'enableExperimentalCode' =>
$wgVisualEditorEnableExperimentalCode,
'namespaces' => $wgVisualEditorNamespaces,
- 'skins' => self::$supportedSkins,
'pluginModules' => $wgVisualEditorPluginModules,
+ 'skins' => self::$supportedSkins,
+ 'tabLayout' => $wgVisualEditorTabLayout,
);
return true;
--
To view, visit https://gerrit.wikimedia.org/r/77041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68f9258f739532ca30d2fdc91e62d6a2f87a5180
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits