On 20/08/2009, at 10:29 AM, Mark Clements (HappyDog) wrote:
To be honest, I don't know why there is more than one entry point at all. Surely it would be better if all requests went through index.php:
<?php //index.php - the only MW entry point // First, do all stuff that is always required. $IP = realpath(dirname(__FILE__)); include($IP . "/LocalSettings.php"); //...and any other actions that should be performed in all cases... if ( !isset( $_SERVER ) || !array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { include($IP . "/maintenance/commandLine.inc"); return; } // Rest of index.php as current. ?>
That's totally bizarre, why not just have both index.php and command- line scripts include another file, like, say, Setup.php?
... Which is what we already do (although it's done from commandLine.inc, because that has some useful stuff for command-line scripts in it).
What problem are you trying to solve here?
-- Andrew Garrett agarrett@wikimedia.org http://werdn.us/