| @@ 173-187 (lines=15) @@ | ||
| 170 | return self::$autoload_dirs; |
|
| 171 | } |
|
| 172 | ||
| 173 | protected static function replaceLoader() |
|
| 174 | { |
|
| 175 | $my_loader_file = |
|
| 176 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Loader.php'; |
|
| 177 | ||
| 178 | if (file_exists($my_loader_file)) |
|
| 179 | { |
|
| 180 | self::$loader_class = config_item('subclass_prefix') . 'Loader'; |
|
| 181 | if ( ! class_exists(self::$loader_class)) |
|
| 182 | { |
|
| 183 | require $my_loader_file; |
|
| 184 | } |
|
| 185 | } |
|
| 186 | self::loadLoader(); |
|
| 187 | } |
|
| 188 | ||
| 189 | protected static function replaceConfig() |
|
| 190 | { |
|
| @@ 189-203 (lines=15) @@ | ||
| 186 | self::loadLoader(); |
|
| 187 | } |
|
| 188 | ||
| 189 | protected static function replaceConfig() |
|
| 190 | { |
|
| 191 | $my_config_file = |
|
| 192 | APPPATH . 'core/' . config_item('subclass_prefix') . 'Config.php'; |
|
| 193 | ||
| 194 | if (file_exists($my_config_file)) |
|
| 195 | { |
|
| 196 | self::$config_class = config_item('subclass_prefix') . 'Config'; |
|
| 197 | if ( ! class_exists(self::$config_class)) |
|
| 198 | { |
|
| 199 | require $my_config_file; |
|
| 200 | } |
|
| 201 | } |
|
| 202 | self::loadConfig(); |
|
| 203 | } |
|
| 204 | ||
| 205 | protected static function replaceHelpers() |
|
| 206 | { |
|