summaryrefslogtreecommitdiffstats
path: root/system/core/URI.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-10 15:11:34 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-10 15:11:34 +0100
commit1ae651655888383a4d7f97fbf6e97a7ac00a9630 (patch)
tree26bdd60797f2b4f385033671501dce31b6808588 /system/core/URI.php
parent52a31ba3acc5f5be16692ac25c70780775e548e0 (diff)
Remove PHP 5.1.6-specific code
Diffstat (limited to 'system/core/URI.php')
-rwxr-xr-xsystem/core/URI.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/system/core/URI.php b/system/core/URI.php
index db5b8e44b..4a2e87c2a 100755
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -444,9 +444,7 @@ class CI_URI {
return array();
}
- return function_exists('array_fill_keys')
- ? array_fill_keys($default, FALSE)
- : array_combine($default, array_fill(0, count($default), FALSE));
+ return array_fill_keys($default, FALSE);
}
$segments = array_slice($this->$segment_array(), ($n - 1));