Changeset 2377
- Timestamp:
- 03/29/08 05:50:38 (5 months ago)
- Location:
- trunk/system
- Files:
-
- 5 modified
-
i18n/en_US/cache.php (modified) (1 diff)
-
i18n/nl_NL/cache.php (modified) (1 diff)
-
libraries/Cache.php (modified) (1 diff)
-
libraries/Pagination.php (modified) (3 diffs)
-
libraries/View.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/i18n/en_US/cache.php
r2230 r2377 5 5 'undefined_group' => 'The %s group is not defined in your configuration.', 6 6 'driver_not_supported' => 'The requested Cache driver, %s, was not found.', 7 'driver_implements' => 'The requested Cache driver, %s, does not implement Cache_Driver.', 7 8 'extension_not_loaded' => 'The %s PHP extension must be loaded to use this driver.', 8 9 'unwritable' => 'The configured storage location, <tt>%s</tt>, is not writable.', -
trunk/system/i18n/nl_NL/cache.php
r2264 r2377 4 4 ( 5 5 '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.', 7 8 'extension_not_loaded' => 'De %s PHP extensie moet geladen zijn om deze driver te gebruiken.', 8 9 'unwritable' => 'De geconfigureerde opslaglocatie, <tt>%s</tt>, is niet schrijfbaar.', -
trunk/system/libraries/Cache.php
r2374 r2377 76 76 // Validate the driver 77 77 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']); 79 79 80 80 Log::add('debug', 'Cache Library initialized'); -
trunk/system/libraries/Pagination.php
r2168 r2377 88 88 { 89 89 // 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, '/')); 91 91 92 92 // Convert uri 'label' to corresponding integer if needed … … 125 125 // If there is no first/last/previous/next page, relative to the 126 126 // 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; 128 128 $this->last_page = ($this->current_page >= $this->total_pages) ? FALSE : $this->total_pages; 129 129 $this->previous_page = ($this->current_page > 1) ? $this->current_page - 1 : FALSE; … … 144 144 { 145 145 // 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) 147 147 return ''; 148 148 -
trunk/system/libraries/View.php
r2247 r2377 195 195 } 196 196 197 if ($print == TRUE)197 if ($print === TRUE) 198 198 { 199 199 // Display the output … … 207 207 header('Content-Type: '.$this->kohana_filetype[0]); 208 208 209 if ($print == TRUE)209 if ($print === TRUE) 210 210 { 211 211 if ($file = fopen($this->kohana_filename, 'rb'))
