X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Flists.php;h=55fe39bdd3abeed900cfa3d2d68390069858f104;hb=12262f1306059765d8625a6752364679c8625d31;hp=1c93980c2a0076259c679f4293f8f72e12dfe65d;hpb=cecdf74795e71ed038411915dad5e0dff6ea51fa;p=platal.git diff --git a/modules/lists.php b/modules/lists.php index 1c93980..55fe39b 100644 --- a/modules/lists.php +++ b/modules/lists.php @@ -1,6 +1,6 @@ prepare_client($page); $page->changeTpl('lists/index.tpl'); - $page->addJsLink('ajax.js'); $page->setTitle('Listes de diffusion'); @@ -356,7 +355,7 @@ class ListsModule extends PLModule $this->prepare_client($page); $members = $this->client->get_members($liste); $list = list_fetch_basic_info(list_extract_members($members[1])); - pl_content_headers("text/x-csv"); + pl_cached_content_headers('text/x-csv', 1); echo "email,nom,promo\n"; echo implode("\n", $list); @@ -512,8 +511,7 @@ class ListsModule extends PLModule $mailer->addTo("$liste-owner@{$domain}"); $mailer->addHeader('Reply-To', "$liste-owner@{$domain}"); $mailer->setSubject("L'inscription de {$sub['name']} a été $info"); - $text = "L'inscription de {$sub['name']} à la liste $liste@{$domain} a été $info par " . S::v('prenom') . ' ' - . S::v('nom') . '(' . S::v('promo') . ")\n"; + $text = "L'inscription de {$sub['name']} à la liste $liste@{$domain} a été $info par " . S::user()->fullName(true) . ".\n"; if (trim(Post::v('reason'))) { $text .= "\nLa raison invoquée est :\n" . Post::v('reason'); }