]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 4 Jan 2018 01:12:15 +0000 (01:12 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 4 Jan 2018 01:12:15 +0000 (01:12 +0000)
lib/php/page.php
www/dbq/dbq.php

index 1900cc1f5e05e7031b21b9df0ead48c7467db1d6..647b2134554e71285619451e8588ae877d654942 100644 (file)
@@ -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 = '';
 
index 9e0073e69cbbeb78376faf7f4f342cba3f77257c..87555d77fe3643ea8f20cc9eafdb09791b318124 100644 (file)
@@ -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();
        }