diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-30 23:38:03 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-30 23:38:03 +0200 |
commit | efbacb9717eb28209c0362c84b293653915fb453 (patch) | |
tree | 0e3eb884dba9546c1845b3ce4ad9481fb4141d9d /App.php | |
parent | beadd930059012ddc6d055c09932227993305604 (diff) | |
download | main-efbacb9717eb28209c0362c84b293653915fb453.tar.gz main-efbacb9717eb28209c0362c84b293653915fb453.tar.bz2 main-efbacb9717eb28209c0362c84b293653915fb453.zip |
Fixes, updated readme
Diffstat (limited to 'App.php')
-rw-r--r-- | App.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -151,8 +151,14 @@ class App */ static function error_handler($errno, $errstr, $errfile, $errline) { - $str = sprintf("%s\t%s\t%s\t%s\n", date("d.m H:i:s"), basename($errfile), $errline, $errstr); + $str = sprintf( + "%s\t%s\t%s\t%s\n", + date("d.m H:i:s"), + basename($errfile), $errline, $errstr + ); + self::log($str); + } /** @@ -257,7 +263,8 @@ class App public function js($string) { - return '<script type="text/javascript" charset="utf-8"> + header("Content-Type: text/javascript"); + print '<script type="text/javascript" charset="utf-8"> ' . $string . ' </script>'; } |