From: Nicolas Boisselier Date: Thu, 4 Jan 2018 01:12:15 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0a9032c981ed4ce6698c07ed739d9b5f792a4385;p=nb.git www/dbq/dbq.php --- 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(); }