diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-05-22 08:42:21 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-05-22 08:42:21 +0300 |
commit | bf1475c7d5a78759e0819f3934f5deb90f478fa2 (patch) | |
tree | 57e1ad348300f1e912c2fa7eafba215f46859aa6 /MainApp.php | |
parent | a42c754c31761767cd1ca6dcfe416671409f5435 (diff) | |
download | main-bf1475c7d5a78759e0819f3934f5deb90f478fa2.tar.gz main-bf1475c7d5a78759e0819f3934f5deb90f478fa2.tar.bz2 main-bf1475c7d5a78759e0819f3934f5deb90f478fa2.zip |
Create log file if not there
Diffstat (limited to 'MainApp.php')
-rw-r--r-- | MainApp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MainApp.php b/MainApp.php index 6007bd0..45c0165 100644 --- a/MainApp.php +++ b/MainApp.php @@ -24,7 +24,7 @@ class MainApp // fire up the output buffer ob_start(); - // Dispatch correct controller + // dispatch correct controller $c = new $controller; // Assume no method name was given, try $param, then default to defaultAction @@ -145,7 +145,7 @@ class MainApp $file = self::conf('app.error_log'); if (!is_file($file)) { - return false; + file_put_contents($file, $msg); } $msg = trim($msg); |