Show
Ignore:
Timestamp:
10/25/2007 08:49:36 PM (13 months ago)
Author:
Shadowhand
Message:

Fixing #159

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r866 r892  
    2323 
    2424        // The view file name and type 
    25         private $kohana_filename  = FALSE; 
    26         private $kohana_filetype  = FALSE; 
     25        protected $kohana_filename  = FALSE; 
     26        protected $kohana_filetype  = FALSE; 
    2727 
    2828        // Set variables 
    29         private $data = array(); 
     29        protected $data = array(); 
    3030 
    3131        /** 
     
    8686        public function __set($name, $value) 
    8787        { 
    88                 $protected = array('kohana_filename', 'kohana_renderer', 'kohana_filetype'); 
    89  
    90                 if (in_array($name, $protected) AND $this->$name === FALSE) 
    91                 { 
    92                         $this->$name = $value; 
    93                 } 
    94                 else 
     88                if ( ! isset($this->$name)) 
    9589                { 
    9690                        $this->data[$name] = $value;