| @@ -103,12 +103,9 @@ | ||
| 103 | 103 | */ |
| 104 | 104 | function show_404($page = '', $log_error = TRUE) |
| 105 | 105 | { |
| 106 | 106 | $heading = "404 Page Not Found"; |
| 107 | - $message = "The page you requested was not found"; | |
| 108 | - if( defined('NTS_DEVELOPMENT') ){ | |
| 109 | - $message .= "<br>Trying: $page"; | |
| 110 | - } | |
| 107 | + $message = "The page you requested was not found."; | |
| 111 | 108 | |
| 112 | 109 | // By default we log this, but allow a dev to skip it |
| 113 | 110 | if ($log_error) |
| 114 | 111 | { |
| @@ -145,11 +142,9 @@ | ||
| 145 | 142 | { |
| 146 | 143 | ob_end_flush(); |
| 147 | 144 | } |
| 148 | 145 | ob_start(); |
| 149 | -// include(APPPATH.'errors/'.$template.'.php'); | |
| 150 | - include(NTS_SYSTEM_APPPATH.'errors/'.$template.'.php'); | |
| 151 | - | |
| 146 | + include(APPPATH.'errors/'.$template.'.php'); | |
| 152 | 147 | $buffer = ob_get_contents(); |
| 153 | 148 | ob_end_clean(); |
| 154 | 149 | return $buffer; |
| 155 | 150 | } |
| @@ -183,10 +178,9 @@ | ||
| 183 | 178 | { |
| 184 | 179 | ob_end_flush(); |
| 185 | 180 | } |
| 186 | 181 | ob_start(); |
| 187 | -// include(APPPATH.'errors/error_php.php'); | |
| 188 | - include(NTS_SYSTEM_APPPATH.'errors/error_php.php'); | |
| 182 | + include(APPPATH.'errors/error_php.php'); | |
| 189 | 183 | $buffer = ob_get_contents(); |
| 190 | 184 | ob_end_clean(); |
| 191 | 185 | echo $buffer; |
| 192 | 186 | } |