Factorizes the content type / content cache headers, and improves caching of static...
[platal.git] / classes / plset.php
index 68a06d5..4b08d99 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -28,7 +28,7 @@ class PlSet
     private $joins   = null;
     private $where   = null;
 
-    private $count   = null;
+    protected $count   = null;
 
     private $mods      = array();
     private $modParams = array();
@@ -164,7 +164,7 @@ class PlSet
         if (!isset($args['rechercher'])) {
             $args['rechercher'] = 'Chercher';
         }
-        $page->changeTpl('core/plset.tpl');
+        $page->coreTpl('plset.tpl');
         $page->assign('plset_base', $baseurl);
         $page->assign('plset_mods', $this->mods);
         $page->assign('plset_mod', $this->mod);
@@ -291,7 +291,7 @@ abstract class MultipageView implements PlView
         $page->assign_by_ref('set', $res);
         $count = $this->set->count();
         $this->pages = intval(ceil($count / $this->entriesPerPage));
-        return 'include/plview.multipage.tpl';
+        return PlPage::getCoreTpl('plview.multipage.tpl');
     }
 
     public function args()