Changeset 2978

Show
Ignore:
Timestamp:
07/07/2008 11:37:11 AM (3 months ago)
Author:
Geert
Message:

One day I will need a view named "0.php"

Location:
trunk/system
Files:
2 modified

Legend:

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

    r2887 r2978  
    764764         * @param   string   filename to look for (including extension only if 4th parameter is TRUE) 
    765765         * @param   boolean  file required 
    766          * @param   boolean  file extension 
     766         * @param   string   file extension 
    767767         * @return  array    if the type is config, i18n or l10n 
    768768         * @return  string   if the file is found 
  • trunk/system/libraries/View.php

    r2593 r2978  
    4545        public function __construct($name = NULL, $data = NULL, $type = NULL) 
    4646        { 
    47                 if ( ! empty($name)) 
     47                if (is_string($name) AND $name !== '') 
    4848                { 
    4949                        // Set the filename