From 0a9032c981ed4ce6698c07ed739d9b5f792a4385 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 4 Jan 2018 01:12:15 +0000 Subject: [PATCH] www/dbq/dbq.php --- lib/php/page.php | 2 +- www/dbq/dbq.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/php/page.php b/lib/php/page.php index 1900cc1f..647b2134 100644 --- a/lib/php/page.php +++ b/lib/php/page.php @@ -26,7 +26,7 @@ class Page extends nb { public static $charset = 'utf-8'; public static $lang = 'en'; public static $html5 = true; - public static $expires; # Seconds to cache, no cache if 0, no head if null + public $expires; # Seconds to cache, no cache if 0, no head if null public $nav = ''; diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 9e0073e6..87555d77 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -141,9 +141,8 @@ class DbQ extends nb { $this->page = new Page([ 'css' => $this->css, 'sep' => $this->sep_title, - #'body_class' => 'fixed', + 'expires' => $this->expires, ]); - if (isset($this->expires)) $this->page->expires = $this->expires; if ($run) $this->run(); } -- 2.47.3