Changeset 67 for trunk/trax/vendor/trax/action_controller.php
- Timestamp:
- 12/04/05 23:52:55 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_controller.php
r62 r67 297 297 if(!$this->keep_flash) { 298 298 # Nuke the flash array 299 Session:: 299 300 unset($_SESSION['flash']); 300 301 } … … 415 416 header("HTTP/1.0 {$error_code} {$error_heading}"); 416 417 # check for user's layout for errors 417 if(DEBUG && file_exists(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/ trax_error.phtml")) {418 include(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/ trax_error.phtml");419 } elseif(DEBUG && file_exists(TRAX_ ROOT.$GLOBALS['TRAX_INCLUDES']['lib']."/templates/error.phtml")) {418 if(DEBUG && file_exists(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/error.phtml")) { 419 include(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/error.phtml"); 420 } elseif(DEBUG && file_exists(TRAX_LIB_ROOT."/templates/error.phtml")) { 420 421 # use default layout for errors 421 include(TRAX_ ROOT.$GLOBALS['TRAX_INCLUDES']['lib']."/templates/error.phtml");422 include(TRAX_LIB_ROOT."/templates/error.phtml"); 422 423 } elseif(DEBUG) { 423 424 echo "<font face=\"verdana, arial, helvetica, sans-serif\">\n";
