Extensions have access to $wgScriptPath on THEIR wiki, not another wiki
through interwiki.
This is for extensions trying to get data on OTHER wiki, of which they
have no knowledge of the script path.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
On Feb 6, 2008 4:14 AM, DanTMan
<dan_the_man(a)telus.net> wrote:
It may be ok for other applications like bots and
such which easily
reuse the same data, but it's not a good idea to force a MediaWiki
extension to grab a page from MediaWiki, hack out the scriptPath from
there using some ugly regex, and then make it's query to the api.
Extensions have access to $wgScriptPath so will be able to access
api.php via $wgScriptPath . 'api.php'.