aboutsummaryrefslogtreecommitdiffstats
path: root/App.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-10-30 23:38:03 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-10-30 23:38:03 +0200
commitefbacb9717eb28209c0362c84b293653915fb453 (patch)
tree0e3eb884dba9546c1845b3ce4ad9481fb4141d9d /App.php
parentbeadd930059012ddc6d055c09932227993305604 (diff)
downloadmain-efbacb9717eb28209c0362c84b293653915fb453.tar.gz
main-efbacb9717eb28209c0362c84b293653915fb453.tar.bz2
main-efbacb9717eb28209c0362c84b293653915fb453.zip
Fixes, updated readme
Diffstat (limited to 'App.php')
-rw-r--r--App.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/App.php b/App.php
index 70b1554..f62a9ef 100644
--- a/App.php
+++ b/App.php
@@ -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>';
}