| @@ 212-226 (lines=15) @@ | ||
| 209 | return self::$autoload_dirs; |
|
| 210 | } |
|
| 211 | ||
| 212 | protected static function replaceLoader() |
|
| 213 | { |
|
| 214 | $my_loader_file = |
|
| 215 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Loader.php'; |
|
| 216 | ||
| 217 | if (file_exists($my_loader_file)) |
|
| 218 | { |
|
| 219 | self::$loader_class = config_item('subclass_prefix') . 'Loader'; |
|
| 220 | if ( ! class_exists(self::$loader_class)) |
|
| 221 | { |
|
| 222 | require $my_loader_file; |
|
| 223 | } |
|
| 224 | } |
|
| 225 | self::loadLoader(); |
|
| 226 | } |
|
| 227 | ||
| 228 | protected static function replaceConfig() |
|
| 229 | { |
|
| @@ 228-242 (lines=15) @@ | ||
| 225 | self::loadLoader(); |
|
| 226 | } |
|
| 227 | ||
| 228 | protected static function replaceConfig() |
|
| 229 | { |
|
| 230 | $my_config_file = |
|
| 231 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Config.php'; |
|
| 232 | ||
| 233 | if (file_exists($my_config_file)) |
|
| 234 | { |
|
| 235 | self::$config_class = config_item('subclass_prefix') . 'Config'; |
|
| 236 | if ( ! class_exists(self::$config_class)) |
|
| 237 | { |
|
| 238 | require $my_config_file; |
|
| 239 | } |
|
| 240 | } |
|
| 241 | self::loadConfig(); |
|
| 242 | } |
|
| 243 | ||
| 244 | protected static function replaceHelpers() |
|
| 245 | { |
|