Changeset 2291
- Timestamp:
- 03/12/2008 11:27:31 AM (9 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2263 r2291 1168 1168 if ($message == $error) 1169 1169 { 1170 $this->message .= $error; 1171 } 1172 else 1173 { 1174 $this->message = $message; 1175 } 1170 $message .= $error; 1171 } 1172 1173 // Sets $this->message the proper way 1174 parent::__construct($message); 1176 1175 } 1177 1176 … … 1223 1222 public function __construct($title, $message, $template = FALSE) 1224 1223 { 1225 $this->code = $title; 1226 $this->message = $message; 1224 Exception::__construct($message); 1225 1226 $this->code = $title; 1227 1227 1228 1228 if ($template != FALSE) … … 1255 1255 } 1256 1256 1257 $this->message = Kohana::lang('core.page_not_found', $page); 1258 $this->file = FALSE; 1259 $this->line = FALSE; 1257 Exception::__construct(Kohana::lang('core.page_not_found', $page)); 1258 1259 $this->file = FALSE; 1260 $this->line = FALSE; 1260 1261 1261 1262 $this->template = $template;
