Review page: small improvements
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 22 Sep 2007 14:33:44 +0000 (16:33 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 22 Sep 2007 14:33:44 +0000 (16:33 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/events.php
modules/platal/review.inc.php

index ac4a68b..d26c517 100644 (file)
@@ -40,7 +40,7 @@ class EventsModule extends PLModule
     {
         global $globals;
         // Add a new special tip when changing plat/al version
-        if ($globals->version != S::v('last_version') && is_null($exclude)) {
+//        if ($globals->version != S::v('last_version') && is_null($exclude)) {
             XDB::execute('UPDATE auth_user_quick
                              SET last_version = {?}
                            WHERE user_id = {?}',
@@ -48,17 +48,16 @@ class EventsModule extends PLModule
             return array('id' => 0,
                          'titre' => 'Bienvenue sur la nouvelle version du site !',
                          'text' => 'Le site a été mis à jour depuis ta dernière visite vers la version ' . $globals->version
-                                   . '. Nous t\'invitons à en découvrir les nouveautés en te rendant sur '
-                                   . '<a href="banana/xorg.m4x.innovation">nos forums</a> ou en consultant '
-                                   . '<a href="changelog">la liste exhaustive des modifications</a>.<br /><br />'
-                                   . 'Tu peux également consulter le <a href="review">panorama des services</a> '
-                                   . 'fournis par le site.',
+                                   . '.<br /> Nous t\'invitons à <a href="review">faire un tour d\'horizon des '
+                                   . 'nouveautés</a>.<br /><br />'
+                                   . 'Tu peux également retrouver ces informations sur <a href="banana/xorg.m4x.innovation">'
+                                   . 'les fora</a>, ou sur <a href="changelog">la liste exhaustive des modifications</a>',
                          'priorite' => 255,
                          'promo_min' => 0,
                          'promo_max' => 0,
                          'state'     => 'active',
                          'special'   => true);
-        }
+  //      }
 
         $exclude  = is_null($exclude) ? '' : ' AND id != ' . $exclude . ' ';
         $priority = rand(0, 510);
index bdb9521..d43a164 100644 (file)
@@ -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);
     }
 }