Last modified: 2007-06-28 15:13:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12396, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10396 - AJAX code fails if "index.php" doesn't work.
AJAX code fails if "index.php" doesn't work.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.11.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-28 14:30 UTC by Brion Vibber
Modified: 2007-06-28 15:13 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2007-06-28 14:30:39 UTC
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.
Comment 1 Brion Vibber 2007-06-28 15:13:56 UTC
Fixed in r23507.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links