Updated 'core' + more usage of FileNotFoundException + updated index.php
authorRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 21:54:42 +0000 (23:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 21:54:42 +0000 (23:54 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/template/class_BaseXmlTemplateEngine.php
core
index.php

index 676e09b005dfcba3c5110e38a0143fc03b87f07f..db4e2cfa21efad1622f7cc24d39157418bb00795 100644 (file)
@@ -99,7 +99,7 @@ class BaseXmlTemplateEngine extends BaseTemplateEngine {
                } elseif (!is_dir($templateBasePath)) {
                        // Is not a path
                        throw new BasePathIsNoDirectoryException(array($this, $templateBasePath), self::EXCEPTION_INVALID_PATH_NAME);
-               } elseif (!BaseFrameworkSystem::isReadableFile($templateBasePath)) {
+               } elseif (!is_readable($templateBasePath)) {
                        // Is not readable
                        throw new BasePathReadProtectedException(array($this, $templateBasePath), self::EXCEPTION_READ_PROTECED_PATH);
                }
diff --git a/core b/core
index 45f745c841b922173589746722ab8ab986d9f472..0ae3d7b0ff8ec700c174130c886eb2f9467022f0 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 45f745c841b922173589746722ab8ab986d9f472
+Subproject commit 0ae3d7b0ff8ec700c174130c886eb2f9467022f0
index 51eb50ef9341ef86cdff5c5f4a9b4023502e5024..0a3ef741158afd0be661a3d36b0c1b63d8e4c89b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -150,7 +150,7 @@ final class ApplicationEntryPoint {
 
                                // Flush the response
                                $responseInstance->flushBuffer();
-                       } catch (FileIoException $e) {
+                       } catch (FileNotFoundException $e) {
                                // Even the template 'emergency_exit' wasn't found so output both message
                                exit($message . ', exception: ' . $e->getMessage());
                        }