Changeset 300

Show
Ignore:
Timestamp:
08/01/07 06:25:46 (1 year ago)
Author:
bermiferrer
Message:

Applying PATCH #24 for checking console mode constant.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/script/generators/AkelosGenerator.php

    r265 r300  
    3232            echo "\n   ".Ak::t("You must supply a valid generator as the first command.\n\n   Available generator are:"); 
    3333            echo "\n\n   ".join("\n   ", $this->_getAvailableGenerators())."\n\n"; 
    34             AK_CONSOLE_MODE ? null : exit; 
     34            defined('AK_CONSOLE_MODE') && AK_CONSOLE_MODE ? null : exit;  
    3535            return ; 
    3636        }