Changeset 2377

Show
Ignore:
Timestamp:
03/29/08 05:50:38 (5 months ago)
Author:
Geert
Message:

Added cache.driver_implements error just as is done with all other drivers.
Various other cleanups as well.

Location:
trunk/system
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/i18n/en_US/cache.php

    r2230 r2377  
    55    'undefined_group'      => 'The %s group is not defined in your configuration.', 
    66    'driver_not_supported' => 'The requested Cache driver, %s, was not found.', 
     7    'driver_implements'    => 'The requested Cache driver, %s, does not implement Cache_Driver.', 
    78    'extension_not_loaded' => 'The %s PHP extension must be loaded to use this driver.', 
    89    'unwritable'           => 'The configured storage location, <tt>%s</tt>, is not writable.', 
  • trunk/system/i18n/nl_NL/cache.php

    r2264 r2377  
    44( 
    55    'undefined_group'      => 'De %s groep is niet gedefinieerd in uw configuratie.', 
    6     'driver_not_supported' => 'De %s cache driver werd niet gevonden.', 
     6    'driver_not_supported' => 'De %s Cache driver werd niet gevonden.', 
     7    'driver_implements'    => 'De %s Cache driver implementeert de Cache_Driver interface niet.', 
    78    'extension_not_loaded' => 'De %s PHP extensie moet geladen zijn om deze driver te gebruiken.', 
    89    'unwritable'           => 'De geconfigureerde opslaglocatie, <tt>%s</tt>, is niet schrijfbaar.', 
  • trunk/system/libraries/Cache.php

    r2374 r2377  
    7676        // Validate the driver 
    7777        if ( ! ($this->driver instanceof Cache_Driver)) 
    78             throw new Kohana_Exception('cache.driver_not_supported', 'Cache drivers must use the Cache_Driver interface.'); 
     78            throw new Kohana_Exception('cache.driver_implements', $this->config['driver']); 
    7979 
    8080        Log::add('debug', 'Cache Library initialized'); 
  • trunk/system/libraries/Pagination.php

    r2168 r2377  
    8888        { 
    8989            // Use current URI if no base_url set 
    90             $this->url = ($this->base_url == '') ? Router::$segments : explode('/', trim($this->base_url, '/')); 
     90            $this->url = ($this->base_url === '') ? Router::$segments : explode('/', trim($this->base_url, '/')); 
    9191 
    9292            // Convert uri 'label' to corresponding integer if needed 
     
    125125        // If there is no first/last/previous/next page, relative to the 
    126126        // current page, value is set to FALSE. Valid page number otherwise. 
    127         $this->first_page         = ($this->current_page == 1) ? FALSE : 1; 
     127        $this->first_page         = ($this->current_page === 1) ? FALSE : 1; 
    128128        $this->last_page          = ($this->current_page >= $this->total_pages) ? FALSE : $this->total_pages; 
    129129        $this->previous_page      = ($this->current_page > 1) ? $this->current_page - 1 : FALSE; 
     
    144144    { 
    145145        // Hide single page pagination 
    146         if ($this->auto_hide == TRUE AND $this->total_pages <= 1) 
     146        if ($this->auto_hide === TRUE AND $this->total_pages <= 1) 
    147147            return ''; 
    148148 
  • trunk/system/libraries/View.php

    r2247 r2377  
    195195            } 
    196196 
    197             if ($print == TRUE) 
     197            if ($print === TRUE) 
    198198            { 
    199199                // Display the output 
     
    207207            header('Content-Type: '.$this->kohana_filetype[0]); 
    208208 
    209             if ($print == TRUE) 
     209            if ($print === TRUE) 
    210210            { 
    211211                if ($file = fopen($this->kohana_filename, 'rb'))