From 23eec236098bd7686b3f92bf963380ec2e353eb1 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 9 Jan 2016 05:12:01 +0000 Subject: [PATCH] changed the log view to use the title-band class. fixed a wrong function name in logmodel --- codepot/src/codepot/models/logmodel.php | 2 +- codepot/src/codepot/views/log.php | 42 ++++++++++++++----------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/codepot/src/codepot/models/logmodel.php b/codepot/src/codepot/models/logmodel.php index 5a89e522..7d434f28 100644 --- a/codepot/src/codepot/models/logmodel.php +++ b/codepot/src/codepot/models/logmodel.php @@ -200,7 +200,7 @@ class LogModel extends Model $now = time(); $one_month_ago = $now - (24 * 60 * 60 * 30); - $this->db->where ('createdon <=', codepot_unixtimetodate($one_month_ago)); + $this->db->where ('createdon <=', codepot_unixtimetodbdate($one_month_ago)); $this->db->delete ('log'); if ($this->db->trans_status() === FALSE) diff --git a/codepot/src/codepot/views/log.php b/codepot/src/codepot/views/log.php index 4e0c15d1..74152409 100644 --- a/codepot/src/codepot/views/log.php +++ b/codepot/src/codepot/views/log.php @@ -122,27 +122,33 @@ $this->load->view (
-
-lang->line ('Change log')) ?> +
+ +
+ lang->line ('Change log')) ?> +
+ +
+ + + + + +
+

+ + Are you sure? +

+
+ + lang->line('Purge') ?> + +
+ +
- - - - -
-

- - Are you sure? -

-
- - - -