Changeset 15 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Nov 13, 2005 4:51:22 AM (19 years ago)
Author:
scdev
Message:

M trunk/tests/run_tests.sh
Now can run tests without being in tests dir.

M trunk/tests/_config.inc.php
No change

M trunk/tests/Auth_SQLTest.php
...

M trunk/lib/RecordVersion.inc.php
Removed debugging.

M trunk/lib/DB.inc.php
Added die on connect error only if db_die_on_failure is true.

M trunk/lib/DBSessionHandler.inc.php
Added more accurate error-checking.

M trunk/lib/FormValidator.inc.php
Fixed email regex bugs.

M trunk/lib/SpellCheck.inc.php
Integrated lots of bug fixes from UK update.

M trunk/lib/Auth_SQL.inc.php
Lots of minor bug fixes.

M trunk/lib/App.inc.php
A couple minor bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r14 r15  
    441441            $this =& App::getInstance();
    442442        }
    443 
    444         if (!$this->running) {
    445             return false;
    446         }
    447443       
    448444        // If priority is not specified, assume the worst.
     
    452448        }
    453449   
    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'))) {
    457452            $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.
    459454            trigger_error(sprintf('Codebase error: log directory (%s) not found or writable.', $this->getParam('log_directory')), E_USER_NOTICE);
    460455        }
Note: See TracChangeset for help on using the changeset viewer.