Converts XnetList and the wiki to the new User/hruid model.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 24 Aug 2008 20:27:15 +0000 (22:27 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 24 Aug 2008 20:27:15 +0000 (22:27 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
include/wiki/farmconfig.php
modules/xnetlists.php

index b867000..b15491a 100644 (file)
@@ -53,7 +53,7 @@ $GUIButtons['table'] = array(600,
                  '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
 
 // set default author
-$Author = $_SESSION['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom'];
+$Author = $_SESSION['hruid'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom'];
 
 $InputTags['e_form'] = array(
   ':html' => "<form action='{\$PageUrl}?action=edit' method='post'><div><input
index de5392d..35b0f86 100644 (file)
@@ -159,7 +159,7 @@ class XnetListsModule extends ListsModule
         $ret = $this->client->create_list(
                     $liste, utf8_decode(Post::v('desc')), Post::v('advertise'),
                     Post::v('modlevel'), Post::v('inslevel'),
-                    array(S::v('forlife')), array(S::v('forlife')));
+                    array(S::user()->forlifeEmail()), array(S::user()->forlifeEmail()));
 
         $dom = strtolower($globals->asso("mail_domain"));
         $red = $dom.'_'.$liste;