]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/PageBuilder.php
Use all_tests target in Travis CI
[github/shaarli/Shaarli.git] / application / PageBuilder.php
index e226a77d2677d4327bda9370abf26b3c150fab1e..544aba7ca3f3c1504a093a4f2483b29474af9268 100644 (file)
@@ -25,7 +25,7 @@ class PageBuilder
      *
      * @param ConfigManager $conf Configuration Manager instance (reference).
      */
-    function __construct(&$conf)
+    public function __construct(&$conf)
     {
         $this->tpl = false;
         $this->conf = $conf;
@@ -79,7 +79,7 @@ class PageBuilder
         $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false));
         $this->tpl->assign('token', getToken($this->conf));
         // To be removed with a proper theme configuration.
-        $this->tpl->assign('theme', $this->conf->get('resource.theme', 'default'));
+        $this->tpl->assign('conf', $this->conf);
     }
 
     /**