summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-07-19 12:06:51 +0200
committerAndrey Andreev <narf@devilix.net>2013-07-19 12:06:51 +0200
commit12526cd2b8f69b5b283af0fb3c93ae81a8f4aada (patch)
treea64f032a50eeaddc47db60c8f785cc442a12b8f3 /system/helpers
parenta42f155012af6acd6fed837c9d865b0d215d2d92 (diff)
[ci skip] Simplify get_file_info()
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 1b8efff27..4b45a62d0 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -275,7 +275,7 @@ if ( ! function_exists('get_file_info'))
switch ($key)
{
case 'name':
- $fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1);
+ $fileinfo['name'] = basename($file);
break;
case 'server_path':
$fileinfo['server_path'] = $file;