Changeset 2292

Show
Ignore:
Timestamp:
03/12/2008 01:07:56 PM (10 months ago)
Author:
Geert
Message:

Follow-up to r2291. Thanks to allain as well, for digging into this.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r2291 r2292  
    11411141        protected $template = 'kohana_error_page'; 
    11421142 
    1143         // Message 
    1144         protected $message = 'Unknown Exception: '; 
    1145  
    11461143        // Header 
    11471144        protected $header = FALSE; 
    11481145 
    1149         // Error code, filename, line number 
     1146        // Error code 
    11501147        protected $code = E_KOHANA; 
    1151         protected $file = FALSE; 
    1152         protected $line = FALSE; 
    11531148 
    11541149        /** 
     
    11661161 
    11671162                // 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; 
    11711166                } 
    11721167 
     
    12261221                $this->code = $title; 
    12271222 
    1228                 if ($template != FALSE) 
     1223                if ($template !== FALSE) 
    12291224                { 
    12301225                        $this->template = $template; 
     
    12571252                Exception::__construct(Kohana::lang('core.page_not_found', $page)); 
    12581253 
    1259                 $this->file = FALSE; 
    1260                 $this->line = FALSE; 
    1261  
    12621254                $this->template = $template; 
    12631255        }