aboutsummaryrefslogtreecommitdiffstats
path: root/App.php
diff options
context:
space:
mode:
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>';
}