diff options
author | Robin Sowell <robin.sowell@ellislab.com> | 2010-04-09 17:18:26 +0200 |
---|---|---|
committer | Robin Sowell <robin.sowell@ellislab.com> | 2010-04-09 17:18:26 +0200 |
commit | 73c19fc2e15bb542053bc347ee922ceb26114696 (patch) | |
tree | a6d36cfc50954ab49279d3c8e9d8fae27ccbcb36 | |
parent | 0846d746cfe30f827dd20952a6b492ec4b61de95 (diff) |
Modified get_file_info in the file helper, changing filectime() to filemtime() for dates.
-rw-r--r-- | system/helpers/file_helper.php | 2 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 274c4ad37..448bf275f 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -305,7 +305,7 @@ if ( ! function_exists('get_file_info')) $fileinfo['size'] = filesize($file); break; case 'date': - $fileinfo['date'] = filectime($file); + $fileinfo['date'] = filemtime($file); break; case 'readable': $fileinfo['readable'] = is_readable($file); diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 12a4dc92f..21c35d6a8 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -117,6 +117,7 @@ Hg Tag: </p> <li>Added an optional second parameter to <kbd>byte_format()</kbd> in the <a href="helpers/number_helper.html">Number Helper</a> to allow for decimal precision.</li> <li>Added alpha, and sha1 string types to <kbd>random_string()</kbd> in the <a href="helpers/string_helper.html">String Helper</a>.</li> <li>Modified <kbd>prep_url()</kbd> so as to not prepend http:// if the supplied string already has a scheme.</li> + <li>Modified <kbd>get_file_info</kbd> in the file helper, changing filectime() to filemtime() for dates.</li> </ul> </li> <li>Other Changes |