Moved fatalError() from Controller to Error class.

* Renamed the method to fatal().

 * Added Error class, but I may be factoring it out and replacing it with strong dependency of PHP built-in Exceptions.

 * Cleaned up some other stuff too.
This commit is contained in:
Josh Sherman 2010-03-30 22:28:20 -04:00
parent b1d7ef7645
commit ea6930bc23
4 changed files with 66 additions and 34 deletions

View file

@ -116,8 +116,7 @@ class Log extends Object
*/
private static function write($log_type, $message, $format = true, $time = false)
{
$config = Config::getInstance();
$log_path = LOG_PATH . date('/Y/m/d/', ($time == false ? time() : $time));
$log_path = LOG_PATH . date('Y/m/d/', ($time == false ? time() : $time));
if (!file_exists($log_path))
{