summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-04 00:07:58 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-04 00:07:58 +0100
commitd533ce99fd95804f40fd2bd0b08032ab712e15b0 (patch)
treedf0b0d2824403004e41669a5f81e60ed3735ea59
parent7ea8d014c885bb5ac83f9b02aa764c661acfd87a (diff)
parentb3ec94252c0c96e0093fff4736fb10e80c615b24 (diff)
Merge pull request #2113 from and-ers/develop
Easy optimization
-rw-r--r--system/core/Loader.php2
-rw-r--r--tests/codeigniter/core/Config_test.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 3f20675a7..5e6c40050 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -714,7 +714,7 @@ class CI_Loader {
// Add config file path
$config =& $this->_ci_get_component('config');
- array_push($config->_config_paths, $path);
+ $config->_config_paths[] = $path;
}
// --------------------------------------------------------------------
diff --git a/tests/codeigniter/core/Config_test.php b/tests/codeigniter/core/Config_test.php
index be426d070..e3be8a3fc 100644
--- a/tests/codeigniter/core/Config_test.php
+++ b/tests/codeigniter/core/Config_test.php
@@ -195,7 +195,7 @@ class Config_test extends CI_TestCase {
$pkg_dir = 'package';
$this->ci_vfs_create($file.'.php', '<?php $config = '.var_export($cfg2, TRUE).';', $this->ci_app_root,
array($pkg_dir, 'config'));
- array_push($this->config->_config_paths, $this->ci_vfs_path($pkg_dir.'/', APPPATH));
+ $this->config->_config_paths[] = $this->ci_vfs_path($pkg_dir.'/', APPPATH);
$this->assertTrue($this->config->load($file, TRUE));
$this->assertEquals(array_merge($cfg, $cfg2), $this->config->item($file));
array_pop($this->config->_config_paths);