Changeset 15 for trunk/lib/App.inc.php
- Timestamp:
- Nov 13, 2005 4:51:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r14 r15 441 441 $this =& App::getInstance(); 442 442 } 443 444 if (!$this->running) {445 return false;446 }447 443 448 444 // If priority is not specified, assume the worst. … … 452 448 } 453 449 454 // If log file is not specified, create one in the codebase root. 455 if ($this->getParam('log_directory') === null || !is_dir($this->getParam('log_directory')) || !is_writable($this->getParam('log_directory'))) { 456 // If log file is not specified, don't log to a file. 450 // If log file is not specified, don't log to a file. 451 if (!$this->getParam('log_directory') || !$this->getParam('log_filename') || !is_dir($this->getParam('log_directory')) || !is_writable($this->getParam('log_directory'))) { 457 452 $this->setParam(array('log_file_priority' => false)); 458 // We must use trigger_error rather than calling App::logMsg, which might lead to an infinite loop.453 // We must use trigger_error to report this problem rather than calling App::logMsg, which might lead to an infinite loop. 459 454 trigger_error(sprintf('Codebase error: log directory (%s) not found or writable.', $this->getParam('log_directory')), E_USER_NOTICE); 460 455 }
Note: See TracChangeset
for help on using the changeset viewer.