Remove some unneeded local vars from EditPage.php
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 19 Mar 2014 18:50:51 +0000 (19:50 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 20 Mar 2014 21:06:18 +0000 (21:06 +0000)
Looks like a left over from refactoring in r31475

Change-Id: I6ffd2e1db8a842bebc37ce67e6265714258e79f9

includes/EditPage.php

index 5f5cb53..725ee10 100644 (file)
@@ -3446,16 +3446,16 @@ HTML
                        }
 
                        $params = array(
-                               $image = $wgStylePath . '/common/images/' . $tool['image'],
+                               $wgStylePath . '/common/images/' . $tool['image'],
                                // Note that we use the tip both for the ALT tag and the TITLE tag of the image.
                                // Older browsers show a "speedtip" type message only for ALT.
                                // Ideally these should be different, realistically they
                                // probably don't need to be.
-                               $tip = $tool['tip'],
-                               $open = $tool['open'],
-                               $close = $tool['close'],
-                               $sample = $tool['sample'],
-                               $cssId = $tool['id'],
+                               $tool['tip'],
+                               $tool['open'],
+                               $tool['close'],
+                               $tool['sample'],
+                               $tool['id'],
                        );
 
                        $script .= Xml::encodeJsCall( 'mw.toolbar.addButton', $params );