summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-06 03:33:46 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-06 03:33:46 +0100
commit828f4c9d9ace922f5135742170d489d811548b04 (patch)
treec11816d188e1a77c882f78c1b7904a5b48c2f3d5 /system/core/Loader.php
parent762572f45a14418c9259527e377a1df78a651618 (diff)
parent4c22364e12268961aac3ba0f2a4b60a066a16bcd (diff)
Merge pull request #2121 from TheDigitalOrchard/develop
utilize static function variables in Common::log_message() to "cache" lo...
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 5e6c40050..9bfddc15a 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -52,28 +52,28 @@ class CI_Loader {
*
* @var array
*/
- protected $_ci_view_paths = array();
+ protected $_ci_view_paths = array(VIEWPATH => TRUE);
/**
* List of paths to load libraries from
*
* @var array
*/
- protected $_ci_library_paths = array();
+ protected $_ci_library_paths = array(APPPATH, BASEPATH);
/**
* List of paths to load models from
*
* @var array
*/
- protected $_ci_model_paths = array();
+ protected $_ci_model_paths = array(APPPATH);
/**
* List of paths to load helpers from
*
* @var array
*/
- protected $_ci_helper_paths = array();
+ protected $_ci_helper_paths = array(APPPATH, BASEPATH);
/**
* List of loaded base classes
@@ -137,10 +137,6 @@ class CI_Loader {
public function __construct()
{
$this->_ci_ob_level = ob_get_level();
- $this->_ci_library_paths = array(APPPATH, BASEPATH);
- $this->_ci_helper_paths = array(APPPATH, BASEPATH);
- $this->_ci_model_paths = array(APPPATH);
- $this->_ci_view_paths = array(VIEWPATH => TRUE);
log_message('debug', 'Loader Class Initialized');
}