From 4c2b0ca8660e3f566db86a2de44cf8d374262439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Thu, 26 Apr 2012 09:06:57 +0200 Subject: [PATCH] Working on Web admin --- .../Frameworks/Baikal/Core/Bootstrap.php | 16 +- html/test-sprite-glyphpro-2x.html | 381 ------------------ html/test-sprite-glyphpro.html | 381 ------------------ 3 files changed, 5 insertions(+), 773 deletions(-) delete mode 100644 html/test-sprite-glyphpro-2x.html delete mode 100644 html/test-sprite-glyphpro.html diff --git a/CoreVersions/0.2.0/Frameworks/Baikal/Core/Bootstrap.php b/CoreVersions/0.2.0/Frameworks/Baikal/Core/Bootstrap.php index 544736c..35f071e 100644 --- a/CoreVersions/0.2.0/Frameworks/Baikal/Core/Bootstrap.php +++ b/CoreVersions/0.2.0/Frameworks/Baikal/Core/Bootstrap.php @@ -139,19 +139,13 @@ if( # Establishing connection with database $GLOBALS["DB"] = new \Flake\Core\Database\Sqlite(BAIKAL_SQLITE_FILE); - $bShouldCheckEnv = ((!defined("BAIKAL_CONTEXT_CLI") || BAIKAL_CONTEXT_CLI === FALSE) && (!defined("BAIKAL_CONTEXT_ADMIN") || BAIKAL_CONTEXT_ADMIN === FALSE)); - - if($bShouldCheckEnv === TRUE) { - # Mapping PHP errors to exceptions; needed by SabreDAV - function exception_error_handler($errno, $errstr, $errfile, $errline) { - throw new \ErrorException($errstr, 0, $errno, $errfile, $errline); - } - - set_error_handler("exception_error_handler"); - } else { - error_reporting(E_ALL ^ E_NOTICE); + # Mapping PHP errors to exceptions; needed by SabreDAV + function exception_error_handler($errno, $errstr, $errfile, $errline) { + throw new \ErrorException($errstr, 0, $errno, $errfile, $errline); } + set_error_handler("exception_error_handler"); + unset($bShouldCheckEnv); # SabreDAV Autoloader diff --git a/html/test-sprite-glyphpro-2x.html b/html/test-sprite-glyphpro-2x.html deleted file mode 100644 index 7b1e6a1..0000000 --- a/html/test-sprite-glyphpro-2x.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - Glyphro 2x - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - \ No newline at end of file diff --git a/html/test-sprite-glyphpro.html b/html/test-sprite-glyphpro.html deleted file mode 100644 index c24266e..0000000 --- a/html/test-sprite-glyphpro.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - Glyphro - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - \ No newline at end of file