commit | 12526cd2b8f69b5b283af0fb3c93ae81a8f4aada | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Jul 19 13:06:51 2013 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Fri Jul 19 13:06:51 2013 +0300 |
tree | a64f032a50eeaddc47db60c8f785cc442a12b8f3 | |
parent | a42f155012af6acd6fed837c9d865b0d215d2d92 [diff] |
[ci skip] Simplify get_file_info()
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 1b8efff..4b45a62 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php
@@ -275,7 +275,7 @@ switch ($key) { case 'name': - $fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1); + $fileinfo['name'] = basename($file); break; case 'server_path': $fileinfo['server_path'] = $file;