diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:18:53 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:18:53 +0200 |
commit | 3046c9fdc764fd68b855b09e1600e22ecc62a47b (patch) | |
tree | 234f61ec461b63ae0fc8a80f5abb13fdcdd1e079 | |
parent | 37294771ef8cdb0c2d4834783ad79a6bdbc96d77 (diff) | |
parent | 2fceb85c49142cd512c10080a3cd9ad067f0414c (diff) |
Merge pull request #1357 from timw4mail/errors
Move errors to views folder
-rw-r--r-- | application/views/errors/error_404.php (renamed from application/errors/error_404.php) | 0 | ||||
-rw-r--r-- | application/views/errors/error_db.php (renamed from application/errors/error_db.php) | 0 | ||||
-rw-r--r-- | application/views/errors/error_general.php (renamed from application/errors/error_general.php) | 0 | ||||
-rw-r--r-- | application/views/errors/error_php.php (renamed from application/errors/error_php.php) | 0 | ||||
-rw-r--r-- | application/views/errors/index.html (renamed from application/errors/index.html) | 0 | ||||
-rwxr-xr-x | system/core/Exceptions.php | 4 | ||||
-rw-r--r-- | user_guide_src/source/changelog.rst | 1 | ||||
-rw-r--r-- | user_guide_src/source/installation/upgrade_300.rst | 7 |
8 files changed, 9 insertions, 3 deletions
diff --git a/application/errors/error_404.php b/application/views/errors/error_404.php index c19bedfcd..c19bedfcd 100644 --- a/application/errors/error_404.php +++ b/application/views/errors/error_404.php diff --git a/application/errors/error_db.php b/application/views/errors/error_db.php index 3b244e094..3b244e094 100644 --- a/application/errors/error_db.php +++ b/application/views/errors/error_db.php diff --git a/application/errors/error_general.php b/application/views/errors/error_general.php index c88afe168..c88afe168 100644 --- a/application/errors/error_general.php +++ b/application/views/errors/error_general.php diff --git a/application/errors/error_php.php b/application/views/errors/error_php.php index b76dc8a9e..b76dc8a9e 100644 --- a/application/errors/error_php.php +++ b/application/views/errors/error_php.php diff --git a/application/errors/index.html b/application/views/errors/index.html index c942a79ce..c942a79ce 100644 --- a/application/errors/index.html +++ b/application/views/errors/index.html diff --git a/system/core/Exceptions.php b/system/core/Exceptions.php index 965a717ad..8c32085fe 100755 --- a/system/core/Exceptions.php +++ b/system/core/Exceptions.php @@ -143,7 +143,7 @@ class CI_Exceptions { ob_end_flush(); } ob_start(); - include(APPPATH.'errors/'.$template.'.php'); + include(APPPATH.'views/errors/'.$template.'.php'); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; @@ -177,7 +177,7 @@ class CI_Exceptions { ob_end_flush(); } ob_start(); - include(APPPATH.'errors/error_php.php'); + include(APPPATH.'views/errors/error_php.php'); $buffer = ob_get_contents(); ob_end_clean(); echo $buffer; diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst index 2b15c3f55..e0d745fd8 100644 --- a/user_guide_src/source/changelog.rst +++ b/user_guide_src/source/changelog.rst @@ -37,6 +37,7 @@ Release Date: Not Released Only entries in ``$autoload['libraries']`` are auto-loaded now. - Added some more doctypes. - Updated all classes to be written in PHP 5 style, with visibility declarations and no ``var`` usage for properties. + - Moved error templates to "application/views/errors" - Helpers diff --git a/user_guide_src/source/installation/upgrade_300.rst b/user_guide_src/source/installation/upgrade_300.rst index e434e8d45..63c4227dc 100644 --- a/user_guide_src/source/installation/upgrade_300.rst +++ b/user_guide_src/source/installation/upgrade_300.rst @@ -40,4 +40,9 @@ need to rename the `$active_record` variable to `$query_builder`. $active_group = 'default'; // $active_record = TRUE; - $query_builder = TRUE;
\ No newline at end of file + $query_builder = TRUE; + +Step 5: Move your errors folder +=============================== + +In version 3.0.0, the errors folder has been moved from "application/errors" to "application/views/errors".
\ No newline at end of file |