X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal%2Freview.inc.php;h=2b48319aefb1a7460fd461056f9d1fd96bfd4234;hb=efe597c5795234724bc3df508bd628f9860a9c32;hp=96e6aab685428ccf1dd1b1577103920d84eec25c;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/modules/platal/review.inc.php b/modules/platal/review.inc.php index 96e6aab..2b48319 100644 --- a/modules/platal/review.inc.php +++ b/modules/platal/review.inc.php @@ -27,13 +27,12 @@ class ReviewPage implements PlWizardPage public function template() { return 'platal/review.tpl'; } public function process() { } - public function prepare(PlatalPage &$page, $id) + public function prepare(PlPage &$page, $id) { - require_once 'wiki.inc.php'; - $dom = (@$GLOBALS['IS_XNET_SITE'] ? 'ReviewXnet' : 'Review') . '.' . ucfirst($id); - wiki_require_page($dom); - $page->assign('cacheExists', wiki_work_dir() . '/cache_' . $dom . '.tpl'); - $page->assign('article', $dom); + $wp = new PlWikiPage((@$GLOBALS['IS_XNET_SITE'] ? 'ReviewXnet' : 'Review') . '.' . ucfirst($id)); + $wp->buildCache(); + $page->assign('cacheExists', $wp->cacheFilename()); + $page->assign('article', $wp->name); } }