Fix a stupid typo I made in a back-compat check.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 7 Jul 2007 16:39:41 +0000 (16:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 7 Jul 2007 16:39:41 +0000 (16:39 +0000)
Could have occasionally caused errors in AJAX-laden pages cached from before an upgrade

skins/common/ajax.js

index c84f337..854d7a0 100644 (file)
@@ -81,7 +81,7 @@ function sajax_do_call(func_name, args, target) {
        var uri;
        var post_data;
        uri = wgServer +
-               ((wgServer == null) ? (wgScriptPath + "/index.php") : wgScript) +
+               ((wgScript == null) ? (wgScriptPath + "/index.php") : wgScript) +
                "?action=ajax";
        if (sajax_request_type == "GET") {
                if (uri.indexOf("?") == -1)