includes/common.php
changeset 812 68060328e9c6
parent 801 eb8b23f11744
child 832 7152ca0a0ce9
--- a/includes/common.php	Sun Jan 11 21:37:49 2009 -0500
+++ b/includes/common.php	Wed Jan 14 20:33:05 2009 -0500
@@ -178,9 +178,9 @@
 $dst_params = array(0, 0, 0, 0, 60);
 
 // Divert to CLI loader if running from CLI
-if ( isset($argc) && isset($argv) )
+if ( defined('ENANO_CLI') || ( isset($argc) && isset($argv) ) )
 {
-  if ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) )
+  if ( defined('ENANO_CLI') || ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) ) )
   {
     require(ENANO_ROOT . '/includes/common_cli.php');
     return;