Fix clear cache on X.net
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 29 Jun 2008 19:03:12 +0000 (21:03 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 29 Jun 2008 19:03:12 +0000 (21:03 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/xnet/page.inc.php
modules/xnetevents.php

index c9ec661..8acc8eb 100644 (file)
@@ -125,13 +125,13 @@ class XnetPage extends PlatalPage
             }
             if (S::has_perms()) {
                 $sub['gérer les groupes'] = array('href' => 'admin', 'style' => 'color: gray;');
-                $sub['clear cache'] = array('href' => 'purge_cache', 'style' => 'color: gray;');
+                $sub['clear cache'] = array('href' => 'purge_cache?token=' . S::v('xsrf_token'), 'style' => 'color: gray;');
             }
             $menu['Administrer'] = $sub;
         } elseif (S::has_perms()) {
             $sub = array();
             $sub['gérer les groupes'] = 'admin';
-            $sub['clear cache'] = 'purge_cache';
+            $sub['clear cache'] = 'purge_cache?token=' . S::v('xsrf_token');
             $menu['Administrer'] = $sub;
         }
 
index 231a93f..417fb3f 100644 (file)
@@ -574,7 +574,6 @@ class XnetEventsModule extends PLModule
         $page->assign('tout', is_null($item_id));
 
         if (count($evt['moments'])) {
-            //var_dump($evt['moments']);
             $page->assign('moments', $evt['moments']);
         }