summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-12 23:05:13 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-12 23:05:13 -0700
commit5f878e169f7b55c1bd0143305d6ba23f84b3a22e (patch)
treec511e897b2bcc7d6a86d984172f7e7612a66a400 /modules/gallery/helpers/gallery.php
parent3e71a44a9612edabaaf9a04eac6f15b223ee3966 (diff)
Move date/time format strings into a setting and bump the gallery
module to version 2. First test of our upgrade code!
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
-rw-r--r--modules/gallery/helpers/gallery.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index e201fded..e22cc17f 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -56,7 +56,7 @@ class gallery_Core {
* @return string
*/
static function date_time($timestamp) {
- return date("Y-M-d H:i:s", $timestamp);
+ return date(module::get_var("gallery", "date_time_format", "Y-M-d H:i:s"), $timestamp);
}
/**
@@ -65,7 +65,7 @@ class gallery_Core {
* @return string
*/
static function date($timestamp) {
- return date("Y-M-d", $timestamp);
+ return date(module::get_var("gallery", "date_format", "Y-M-d"), $timestamp);
}
/**
@@ -74,6 +74,6 @@ class gallery_Core {
* @return string
*/
static function time($timestamp) {
- return date("H:i:s", $timestamp);
+ return date(module::get_var("gallery", "time_format", "H:i:s"), $timestamp);
}
} \ No newline at end of file