Use wfAppendQuery() instead of "$path?$wgStyleVersion" where $path can contain ?foo...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Feb 2010 10:48:11 +0000 (10:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Feb 2010 10:48:11 +0000 (10:48 +0000)
includes/OutputPage.php

index 9f2ba39..93fde20 100644 (file)
@@ -191,7 +191,7 @@ class OutputPage {
                } else {
                        $path =  "{$wgStylePath}/common/{$file}";
                }
-               $this->addScript( Html::linkedScript( "$path?$wgStyleVersion" ) );
+               $this->addScript( Html::linkedScript( wfAppendQuery( $path, $wgStyleVersion ) ) );
        }
 
        /**