diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-11 09:54:02 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-11 09:54:02 +0200 |
commit | a52c775d490fede2a0cb7f54f0dcc5010d7e0465 (patch) | |
tree | b79310aaa7f63a697a1c3e9c0ced368a62534e64 | |
parent | 9738668fd6b4078c7eb9df3372e5035791caaaf4 (diff) |
Replace a few require() uses with require_once() (should fix issue #1872)
-rw-r--r-- | system/core/CodeIgniter.php | 2 | ||||
-rw-r--r-- | system/core/Common.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php index 8159b19f5..f3592eaf9 100644 --- a/system/core/CodeIgniter.php +++ b/system/core/CodeIgniter.php @@ -50,7 +50,7 @@ * Load the global functions * ------------------------------------------------------ */ - require(BASEPATH.'core/Common.php'); + require_once(BASEPATH.'core/Common.php'); /* * ------------------------------------------------------ diff --git a/system/core/Common.php b/system/core/Common.php index 981af4559..341402c6b 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -150,7 +150,7 @@ if ( ! function_exists('load_class')) if (class_exists($name) === FALSE) { - require($path.$directory.'/'.$class.'.php'); + require_once($path.$directory.'/'.$class.'.php'); } break; @@ -164,7 +164,7 @@ if ( ! function_exists('load_class')) if (class_exists($name) === FALSE) { - require(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php'); + require_once(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php'); } } |