From e380c455b7cb7c3016375062020ec13a88821f9a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 19 Feb 2007 18:16:21 +0000 Subject: [PATCH] Further fix: restore order of parameters on addButton() to most backwards- and forwards-compatible state --- includes/DefaultSettings.php | 2 +- includes/EditPage.php | 2 +- skins/common/wikibits.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 1f63f6cc78..8038676e4f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1117,7 +1117,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '57'; +$wgStyleVersion = '58'; # Server-side caching: diff --git a/includes/EditPage.php b/includes/EditPage.php index 7567c3093e..505e800d90 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1690,7 +1690,7 @@ END #$key = $tool["key"]; - $toolbar.="addButton('$cssId','$image','$tip','$open','$close','$sample');\n"; + $toolbar.="addButton('$image','$tip','$open','$close','$sample','$cssId');\n"; } $toolbar.="/*]]>*/\n"; diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 7889c396a3..bb2280b923 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -330,7 +330,7 @@ var mwCustomEditButtons = []; // eg to add in MediaWiki:Common.js // this function generates the actual toolbar buttons with localized text // we use it to avoid creating the toolbar where javascript is not enabled -function addButton(imageId, imageFile, speedTip, tagOpen, tagClose, sampleText) { +function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) { // Don't generate buttons for browsers which don't fully // support it. mwEditButtons[mwEditButtons.length] = -- 2.20.1