Add a link to password documentation.
[platal.git] / modules / platal / review.inc.php
index bdb9521..96e6aab 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -32,7 +32,7 @@ class ReviewPage implements PlWizardPage
         require_once 'wiki.inc.php';
         $dom = (@$GLOBALS['IS_XNET_SITE'] ? 'ReviewXnet' : 'Review') . '.' . ucfirst($id);
         wiki_require_page($dom);
-        $page->assign('cacheExists', file_exists(dirname(__FILE__) . '/../../spool/wiki.d/cache_' . $dom . '.tpl'));
+        $page->assign('cacheExists', wiki_work_dir() . '/cache_' . $dom . '.tpl');
         $page->assign('article', $dom);
     }
 }