| @@ 200-214 (lines=15) @@ | ||
| 197 | self::loadLoader(); |
|
| 198 | } |
|
| 199 | ||
| 200 | protected static function replaceConfig() |
|
| 201 | { |
|
| 202 | $my_config_file = |
|
| 203 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Config.php'; |
|
| 204 | ||
| 205 | if (file_exists($my_config_file)) |
|
| 206 | { |
|
| 207 | self::$config_class = config_item('subclass_prefix') . 'Config'; |
|
| 208 | if ( ! class_exists(self::$config_class)) |
|
| 209 | { |
|
| 210 | require $my_config_file; |
|
| 211 | } |
|
| 212 | } |
|
| 213 | self::loadConfig(); |
|
| 214 | } |
|
| 215 | ||
| 216 | protected static function replaceHelpers() |
|
| 217 | { |
|
| @@ 184-198 (lines=15) @@ | ||
| 181 | return self::$autoload_dirs; |
|
| 182 | } |
|
| 183 | ||
| 184 | protected static function replaceLoader() |
|
| 185 | { |
|
| 186 | $my_loader_file = |
|
| 187 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Loader.php'; |
|
| 188 | ||
| 189 | if (file_exists($my_loader_file)) |
|
| 190 | { |
|
| 191 | self::$loader_class = config_item('subclass_prefix') . 'Loader'; |
|
| 192 | if ( ! class_exists(self::$loader_class)) |
|
| 193 | { |
|
| 194 | require $my_loader_file; |
|
| 195 | } |
|
| 196 | } |
|
| 197 | self::loadLoader(); |
|
| 198 | } |
|
| 199 | ||
| 200 | protected static function replaceConfig() |
|
| 201 | { |
|