Changeset 3210
- Timestamp:
- 07/27/2008 05:37:49 AM (4 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
core/Kohana.php (modified) (4 diffs)
-
i18n/en_US/core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r3209 r3210 373 373 * @return mixed 374 374 */ 375 public static function config($key, $slash = FALSE )375 public static function config($key, $slash = FALSE, $required = TRUE) 376 376 { 377 377 if (self::$configuration === NULL) … … 391 391 { 392 392 // Load the configuration group 393 self::$configuration[$group] = self::config_load($group );393 self::$configuration[$group] = self::config_load($group, $required); 394 394 } 395 395 … … 465 465 * 466 466 * @param string config filename, without extension 467 * @param boolean is the file required? 467 468 * @return array 468 469 */ 469 public static function config_load($name )470 public static function config_load($name, $required = TRUE) 470 471 { 471 472 if ($name === 'core') … … 489 490 $configuration = array(); 490 491 491 if ($files = self::find_file('config', $name, TRUE))492 if ($files = self::find_file('config', $name, $required)) 492 493 { 493 494 foreach ($files as $file) -
trunk/system/i18n/en_US/core.php
r3164 r3210 26 26 27 27 // Resource names 28 'config' => 'config file', 28 29 'controller' => 'controller', 29 30 'helper' => 'helper',
