Changeset 2292
- Timestamp:
- 03/12/2008 01:07:56 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2291 r2292 1141 1141 protected $template = 'kohana_error_page'; 1142 1142 1143 // Message1144 protected $message = 'Unknown Exception: ';1145 1146 1143 // Header 1147 1144 protected $header = FALSE; 1148 1145 1149 // Error code , filename, line number1146 // Error code 1150 1147 protected $code = E_KOHANA; 1151 protected $file = FALSE;1152 protected $line = FALSE;1153 1148 1154 1149 /** … … 1166 1161 1167 1162 // Handle error messages that are not set 1168 if ($message == $error)1169 { 1170 $message .=$error;1163 if ($message === $error OR $message === array()) 1164 { 1165 $message = 'Unknown Exception: '.$error; 1171 1166 } 1172 1167 … … 1226 1221 $this->code = $title; 1227 1222 1228 if ($template != FALSE)1223 if ($template !== FALSE) 1229 1224 { 1230 1225 $this->template = $template; … … 1257 1252 Exception::__construct(Kohana::lang('core.page_not_found', $page)); 1258 1253 1259 $this->file = FALSE;1260 $this->line = FALSE;1261 1262 1254 $this->template = $template; 1263 1255 }
