Changeset 2980
- Timestamp:
- 07/07/2008 12:50:20 PM (5 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/mimes.php (modified) (1 diff)
-
libraries/View.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/mimes.php
r2979 r2980 5 5 * A list of mime types. Our list is generally more complete and accurate than 6 6 * the operating system MIME list. 7 * 7 * 8 8 * If there are any missing options, please create a ticket on our issue tracker, 9 9 * http://kohanaphp.com/trac/newticket. Be sure to give the filename and -
trunk/system/libraries/View.php
r2978 r2980 98 98 public function set($name, $value = NULL) 99 99 { 100 if ( func_num_args() === 1 ANDis_array($name))100 if (is_array($name)) 101 101 { 102 102 foreach ($name as $key => $value) … … 109 109 $this->__set($name, $value); 110 110 } 111 111 112 return $this; 112 113 } … … 135 136 public function set_global($name, $value = NULL) 136 137 { 137 if ( ! is_array($name)) 138 { 139 $name = array($name => $value); 140 } 141 142 foreach ($name as $key => $value) 143 { 144 self::$global_data[$key] = $value; 138 if (is_array($name)) 139 { 140 foreach ($name as $key => $value) 141 { 142 self::$global_data[$key] = $value; 143 } 144 } 145 else 146 { 147 self::$global_data[$name] = $value; 145 148 } 146 149 … … 210 213 $output = Kohana::$instance->_kohana_load_view($this->kohana_filename, $data); 211 214 212 if ($renderer == TRUE AND is_callable($renderer, TRUE))215 if ($renderer !== FALSE AND is_callable($renderer, TRUE)) 213 216 { 214 217 // Pass the output through the user defined renderer
