"Aaron Schulz" posted a comment on MediaWiki.r109739.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/109739#c29899

Commit summary for MediaWiki.r109739:

Followup r109711

When given a script, it may or may not have the full path. So cannot do a 
direct array comparison. Which means it can be: $relFile, $maintenance . 
$relFile, $wikimediaMaintenance . $relFile

Try all locations, and if no matches to the wikiless presume it needs a wiki 
parameter (or else, it's a script we haven't been told is wikiless yet, tough! 
add it yourself)

The scripts that have moved for 1.19 can be removed from the phase3/maintenance 
$wikiless list after 1.19 is sitewide

Aaron Schulz's comment:

You do "$argv[0] = $matches[1]; // make first arg the script file name" before 
ever storing the original. Things like "mwscript 
extensions/FlaggedRevs/maintenance/FILE" won't work with this since it will do 
getMediaWikiCli( "FILE" ).

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to