X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal%2Freview.inc.php;h=2b48319aefb1a7460fd461056f9d1fd96bfd4234;hb=a8b4ccb6c163277c49fb92427a7bb4ace8469660;hp=96e6aab685428ccf1dd1b1577103920d84eec25c;hpb=d0327f6de73e81c4bcc656471ca4161e4f1e1e1b;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); } }