Changeset 1400

Show
Ignore:
Timestamp:
12/03/2007 02:49:54 PM (10 months ago)
Author:
Geert
Message:
  • Pagination library loads configuration values via Config::item() now. Config::load() won't statically store the values already.
  • Cache library now merges configuration values from file and constructor parameter.
Location:
trunk/system/libraries
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Cache.php

    r1336 r1400  
    3232        { 
    3333                // Load configuration 
    34                 $this->config = empty($config) ? Config::item('cache') : $config; 
     34                $this->config = array_merge(Config::item('cache'), (array) $config); 
    3535 
    3636                try 
     
    5454                        throw new Kohana_Exception('cache.driver_not_supported', 'Cache drivers must use the Cache_Driver interface.'); 
    5555 
    56                 Log::add('debug', 'Cache Library initialized.'); 
     56                Log::add('debug', 'Cache Library initialized'); 
    5757 
    5858                if (self::$loaded != TRUE) 
  • trunk/system/libraries/Pagination.php

    r1258 r1400  
    3737        public function __construct($config = array()) 
    3838        { 
    39                 // Merge all pagination config values 
    40                 $config = array_merge(Config::load('pagination', FALSE), (array) $config); 
     39                // Load configuration 
     40                $config = array_merge(Config::item('pagination', FALSE, FALSE), (array) $config); 
    4141 
    4242                $this->initialize($config);