summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-13 14:05:13 +0800
committer <unostar@danalan.info>2009-06-13 20:10:27 +0800
commitdb321863a6d4448360521d0a3db642ee926e9a1c (patch)
treec562ed2033df67b49d8d85456f3389cb34feb475 /modules/gallery/helpers/gallery.php
parent2afa437aa969d0fb0c238a694a8ea855b3e48978 (diff)
Move date/time format strings into a setting and bump the gallery
module to version 2. First test of our upgrade code! Signed-off-by: <unostar@danalan.info>
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