diff -r 5c807fe77020 -r 68060328e9c6 install/includes/common.php --- a/install/includes/common.php Sun Jan 11 21:37:49 2009 -0500 +++ b/install/includes/common.php Wed Jan 14 20:33:05 2009 -0500 @@ -155,4 +155,13 @@ // List of available DB drivers $supported_drivers = array('mysql', 'postgresql'); +// Divert to CLI loader if running from CLI +if ( isset($argc) && isset($argv) ) +{ + if ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) ) + { + define('ENANO_CLI', ''); + } +} + ?>