@@ 80-82 (lines=3) @@ | ||
77 | // Load config group |
|
78 | if (isset($config['group'])) { |
|
79 | // Load and validate config group |
|
80 | if (! is_array($group_config = Kohana::config('pagination.'.$config['group']))) { |
|
81 | throw new Kohana_Exception('pagination.undefined_group', $config['group']); |
|
82 | } |
|
83 | ||
84 | // All pagination config groups inherit default config group |
|
85 | if ($config['group'] !== 'default') { |
|
@@ 85-93 (lines=9) @@ | ||
82 | } |
|
83 | ||
84 | // All pagination config groups inherit default config group |
|
85 | if ($config['group'] !== 'default') { |
|
86 | // Load and validate default config group |
|
87 | if (! is_array($default_config = Kohana::config('pagination.default'))) { |
|
88 | throw new Kohana_Exception('pagination.undefined_group', 'default'); |
|
89 | } |
|
90 | ||
91 | // Merge config group with default config group |
|
92 | $group_config += $default_config; |
|
93 | } |
|
94 | ||
95 | // Merge custom config items with config group |
|
96 | $config += $group_config; |