Page MenuHomePhabricator

AJAX code fails if "index.php" doesn't work.
Closed, ResolvedPublic

Description

Found while reviewing patch for bug 10387.

The AJAX callback code in skins/common/ajax.js attempts to call index.php directly:

uri = wgServer + wgScriptPath + "/index.php?action=ajax";

On a system where index.php doesn't work, this doesn't get us anywhere. The system needs to pass $wgScript as well as $wgScriptPath, then the AJAX code should use that instead of hardcoding index.php.


Version: 1.11.x
Severity: normal

Details

Reference
bz10396

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:53 PM
bzimport set Reference to bz10396.
bzimport added a subscriber: Unknown Object (MLST).

Fixed in r23507.

Now passing wgScript in JS vars, and using it when available for the AJAX calls.