From 73c19fc2e15bb542053bc347ee922ceb26114696 Mon Sep 17 00:00:00 2001
From: Robin Sowell
Date: Fri, 9 Apr 2010 11:18:26 -0400
Subject: Modified get_file_info in the file helper, changing filectime() to
filemtime() for dates.
---
system/helpers/file_helper.php | 2 +-
user_guide/changelog.html | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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:
Added an optional second parameter to byte_format() in the Number Helper to allow for decimal precision.
Added alpha, and sha1 string types to random_string() in the String Helper.
Modified prep_url() so as to not prepend http:// if the supplied string already has a scheme.
+ Modified get_file_info in the file helper, changing filectime() to filemtime() for dates.
Other Changes
--
cgit v1.2.3-24-g4f1b