From d55e06589675bc74f5f7d33ae41777c999e7a2a0 Mon Sep 17 00:00:00 2001 From: PJanisio Date: Tue, 26 May 2015 21:02:06 +0200 Subject: [PATCH] Burn on pastes delete and stikkedizr theme fix Cron used to delete all pastes with toexpire set to 1. Burn on read pastes had this param set by default to 1 also, so they get removed even if unreaded. Stikkedizr theme updated for dynamic width for different devices. --- htdocs/application/models/pastes.php | 2 +- htdocs/themes/stikkedizr/views/defaults/header.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 95e6f1f..53c5992 100644 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -698,7 +698,7 @@ class Pastes extends CI_Model { $stamp = $row['expire']; - if ($now > $stamp) + if ($now > $stamp AND $stamp != 0) { $this->delete_paste($row['pid']); } diff --git a/htdocs/themes/stikkedizr/views/defaults/header.php b/htdocs/themes/stikkedizr/views/defaults/header.php index d9419b1..032dc87 100644 --- a/htdocs/themes/stikkedizr/views/defaults/header.php +++ b/htdocs/themes/stikkedizr/views/defaults/header.php @@ -10,6 +10,7 @@ $page_title .= $this->config->item('site_name'); + <?php echo $page_title; ?>