Changeset 825

Show
Ignore:
Timestamp:
10/14/2007 03:49:50 PM (14 months ago)
Author:
Geert
Message:

Cleanups.

Location:
trunk/system
Files:
4 modified

Legend:

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

    r816 r825  
    461461                        foreach($hooks as $file) 
    462462                        { 
    463                                 Log::add('debug', 'Loading hook'.$file); 
     463                                Log::add('debug', 'Loading hook '.$file); 
    464464                                include $file; 
    465465                        } 
     
    847847                        // If the file is required, throw an exception 
    848848                        if ($required == TRUE) 
    849                         { 
    850849                                throw new Kohana_Exception('core.resource_not_found', $directory, $filename); 
    851                         } 
    852850 
    853851                        return $found[$hash] = FALSE; 
  • trunk/system/libraries/Loader.php

    r816 r825  
    7979 
    8080                        if ($return == TRUE) 
    81                         { 
    8281                                return $class; 
    83                         } 
    84                         else 
    85                         { 
    86                                 Kohana::instance()->$name = $class; 
    87                         } 
     82 
     83                        Kohana::instance()->$name = $class; 
    8884                } 
    8985        } 
     
    10399                // Return the new database object 
    104100                if ($return == TRUE) 
    105                 { 
    106101                        return $db; 
    107                 } 
    108                 else 
    109                 { 
    110                         Kohana::instance()->db = $db; 
    111                 } 
     102 
     103                Kohana::instance()->db = $db; 
    112104        } 
    113105 
     
    158150 
    159151                if ($alias === TRUE) 
    160                 { 
    161152                        return $model; 
    162                 } 
    163                 else 
    164                 { 
    165                         Kohana::instance()->$alias = $model; 
    166                 } 
     153 
     154                Kohana::instance()->$alias = $model; 
    167155        } 
    168156 
  • trunk/system/libraries/URI.php

    r816 r825  
    4141         * 
    4242         * @access      public 
    43          * @param       int 
     43         * @param       integer 
    4444         * @param       mixed 
    4545         * @return      mixed 
     
    5656         * 
    5757         * @access      public 
    58          * @param       int 
     58         * @param       integer 
    5959         * @param       mixed 
    6060         * @return      mixed 
  • trunk/system/libraries/Upload.php

    r816 r825  
    1 <?php defined('SYSPATH') or die('No direct script access.'); 
     1î<?php defined('SYSPATH') or die('No direct script access.'); 
    22/** 
    33 * Kohana: The swift, small, and secure PHP5 framework 
     
    124124         * 
    125125         * @access public 
    126          * @param array 
     126         * @param  array 
    127127         * @return boolean 
    128128         */ 
     
    575575 
    576576                if ($this->upload_path == '' OR ! @is_dir($this->upload_path)) 
    577                 { 
    578577                        throw new Kohana_Exception('upload.no_filepath'); 
    579                 } 
    580578 
    581579                if ( ! is_writable($this->upload_path)) 
    582                 { 
    583580                        throw new Kohana_Exception('upload.not_writable', $this->upload_path); 
    584                 } 
    585581 
    586582                $this->upload_path = rtrim($this->upload_path, '/').'/';