diff --git a/admin/index.php b/admin/index.php index 6083842..95f8376 100644 --- a/admin/index.php +++ b/admin/index.php @@ -15,7 +15,6 @@ * file that was distributed with this source code. */ - // Main engine defines define('DS', DIRECTORY_SEPARATOR); define('ROOT', rtrim(str_replace(array('admin'), array(''), dirname(__FILE__)), '\\/')); diff --git a/admin/themes/default/index.template.php b/admin/themes/default/index.template.php index 0dd0530..ae027c9 100644 --- a/admin/themes/default/index.template.php +++ b/admin/themes/default/index.template.php @@ -100,7 +100,7 @@ / / - © 2012 Monstra – + © 2012 - 2013 Monstra –
diff --git a/libraries/Gelato/ClassLoader/ClassLoader.php b/libraries/Gelato/ClassLoader/ClassLoader.php index 1ddd9e6..e70b315 100644 --- a/libraries/Gelato/ClassLoader/ClassLoader.php +++ b/libraries/Gelato/ClassLoader/ClassLoader.php @@ -90,7 +90,6 @@ class ClassLoader public static function directory($path) { static::$directories[] = rtrim($path, '/'); - echo rtrim($path, '/'); } /** @@ -160,28 +159,27 @@ class ClassLoader public static function load($className) { -/* - var_dump(static::$classes); - die(); -*/ $className = ltrim($className, '\\'); - // Try to autoload an aliased class - + /** + * Try to autoload an aliased class + */ if (isset(static::$aliases[$className])) { return class_alias(static::$aliases[$className], $className); } - // Try to load a mapped class - + /** + * Try to load a mapped class + */ if (isset(static::$classes[$className]) && file_exists(static::$classes[$className])) { include static::$classes[$className]; return true; } - // Try to load class from a registered namespace - + /** + * Try to load class from a registered namespace + */ foreach (static::$namespaces as $namespace => $path) { if (strpos($className, $namespace) === 0) { if (static::loadPSR0(substr($className, strlen($namespace)), $path)) { @@ -190,8 +188,10 @@ class ClassLoader } } - // Try to load a PSR-0 compatible class - // The second call to the loadPSR0 method is used to autoload legacy code + /** + * Try to load a PSR-0 compatible class + * The second call to the loadPSR0 method is used to autoload legacy code + */ if (static::loadPSR0($className) || static::loadPSR0(strtolower($className))) { return true; } diff --git a/libraries/Gelato/ErrorHandler/ErrorHandler.php b/libraries/Gelato/ErrorHandler/ErrorHandler.php index 86055ad..5420229 100644 --- a/libraries/Gelato/ErrorHandler/ErrorHandler.php +++ b/libraries/Gelato/ErrorHandler/ErrorHandler.php @@ -242,7 +242,7 @@ class ErrorHandler $error['type'] = get_class($exception); } - // Write to error log + // @todo Write to error log /*if () { Write here @@ -251,7 +251,7 @@ class ErrorHandler // Send headers and output @header('Content-Type: text/html; charset=UTF-8'); - if (GELATO_DISPLAY_ERRORS) { + if (GELATO_DISPLAY_ERRORS) { $error['backtrace'] = $exception->getTrace(); if ($exception instanceof ErrorException) { diff --git a/libraries/Gelato/ErrorHandler/Resources/Views/Errors/exception.php b/libraries/Gelato/ErrorHandler/Resources/Views/Errors/exception.php index 319e8a5..d07ffce 100644 --- a/libraries/Gelato/ErrorHandler/Resources/Views/Errors/exception.php +++ b/libraries/Gelato/ErrorHandler/Resources/Views/Errors/exception.php @@ -1,3 +1,8 @@ + + + + +Aw, snap! An error has occurred while processing your request.