Further fix: restore order of parameters on addButton() to most backwards- and forwar...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Feb 2007 18:16:21 +0000 (18:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Feb 2007 18:16:21 +0000 (18:16 +0000)
includes/DefaultSettings.php
includes/EditPage.php
skins/common/wikibits.js

index 1f63f6c..8038676 100644 (file)
@@ -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:
index 7567c30..505e800 100644 (file)
@@ -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</script>";
index 7889c39..bb2280b 100644 (file)
@@ -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] =