summaryrefslogtreecommitdiffstats
path: root/application/errors
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-06-04 23:10:31 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-06-05 21:23:49 +0200
commitd088234d67f3aa422796d922e08a07949dc53d83 (patch)
treea964821b6b725dd26becbb3e91acf8d7dd5e0014 /application/errors
parent048410164d2a17bbb588e43351e44eeb81610960 (diff)
Move public files to ./public_html
./data/local is not moved because it contains likely untracked files and moving it would throw an error when updating. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/errors')
-rw-r--r--application/errors/error_404.php2
-rw-r--r--application/errors/error_db.php2
-rw-r--r--application/errors/error_general.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/application/errors/error_404.php b/application/errors/error_404.php
index cfe923d63..2e69d7e00 100644
--- a/application/errors/error_404.php
+++ b/application/errors/error_404.php
@@ -1,3 +1,3 @@
<?php
$title = "404 Page Not Found";
-include "application/errors/error_general.php";
+include APPPATH."errors/error_general.php";
diff --git a/application/errors/error_db.php b/application/errors/error_db.php
index 255513634..827d7cc31 100644
--- a/application/errors/error_db.php
+++ b/application/errors/error_db.php
@@ -1,3 +1,3 @@
<?php
$title = "Database Error";
-include "application/errors/error_general.php";
+include APPPATH."errors/error_general.php";
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index bc1a61973..ec9057025 100644
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -22,7 +22,7 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
exit();
}
- include 'application/views/header.php';
+ include APPPATH.'views/header.php';
?>
<div class="error">
@@ -31,7 +31,7 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
</div>
<?php
- include 'application/views/footer.php';
+ include APPPATH.'views/footer.php';
} elseif (php_sapi_name() === 'cli' OR defined('STDIN')) {
echo "# $heading\n";
$msg = strip_tags(str_replace("<br>", "\n", $message));