X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet.php;h=74dd23fc64996a8177b41e0646b76c34cb305841;hb=63f06a435ff8e9c058b1dee1eb97fff99606d490;hp=65aae6c916609703f2fbeb73b53aa9685056d9dd;hpb=06df222b7962dd5b71b34ec1dd078276d7327dbc;p=platal.git diff --git a/modules/carnet.php b/modules/carnet.php index 65aae6c..74dd23f 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -56,7 +56,7 @@ class CarnetModule extends PLModule function handler_index(&$page) { $page->changeTpl('carnet/index.tpl'); - $page->assign('xorg_title','Polytechnique.org - Mon carnet'); + $page->setTitle('Polytechnique.org - Mon carnet'); $this->_add_rss_link($page); } @@ -65,8 +65,8 @@ class CarnetModule extends PLModule $page->changeTpl('carnet/panel.tpl'); if (Get::has('read')) { - $_SESSION['watch_last'] = Get::v('read'); - update_NbNotifs(); + S::set('watch_last', Get::v('read')); + Platal::session()->updateNbNotifs(); pl_redirect('carnet/panel'); } @@ -195,14 +195,14 @@ class CarnetModule extends PLModule } function searchErrorHandler($explain) { - global $page; + $page =& Platal::page(); $page->trigError($explain); $this->handler_contacts($page); } function handler_contacts(&$page, $action = null, $subaction = null, $ssaction = null) { - $page->assign('xorg_title','Polytechnique.org - Mes contacts'); + $page->setTitle('Polytechnique.org - Mes contacts'); $this->_add_rss_link($page); $uid = S::v('uid'); @@ -281,7 +281,7 @@ class CarnetModule extends PLModule require_once dirname(__FILE__).'/carnet/contacts.pdf.inc.php'; require_once 'user.func.inc.php'; - session_write_close(); + Platal::session()->close(); $sql = "SELECT a.alias FROM aliases AS a @@ -329,7 +329,6 @@ class CarnetModule extends PLModule if (!$uid) { $uid = S::i('uid'); } else if ($uid != S::i('uid')) { - require_once 'xorg.misc.inc.php'; send_warning_email("Récupération d\'un autre utilisateur ($uid)"); } } else if (!$uid) {