From 892083ef7773ba807ee0b25eb58a9ee2db20acdb Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 10 Feb 2007 16:29:42 +0000 Subject: [PATCH] Backports git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1494 839d8a87-29fc-0310-9880-83ba4fa771e5 --- configs/mails.conf | 4 ++++ modules/xnetgrp/mail.inc.php | 2 +- modules/xnetlists.php | 1 - templates/lists/header_listes.tpl | 7 ++++--- templates/xnetgrp/announce-edit.tpl | 2 +- templates/xnetgrp/asso.tpl | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/configs/mails.conf b/configs/mails.conf index bb12914..fb63f39 100644 --- a/configs/mails.conf +++ b/configs/mails.conf @@ -19,6 +19,10 @@ to=support@polytechnique.org [inscription] from=support@polytechnique.org +[emails_broken] +from="Polytechnique.org" +subject="Une de tes adresse de redirection Polytechnique.org ne marche plus !!" + [newsletter] from="Lettre Mensuelle Polytechnique.org" replyto=info+nlp@polytechnique.org diff --git a/modules/xnetgrp/mail.inc.php b/modules/xnetgrp/mail.inc.php index 3a51f5e..6c6e866 100644 --- a/modules/xnetgrp/mail.inc.php +++ b/modules/xnetgrp/mail.inc.php @@ -21,7 +21,7 @@ // {{{ get_all_redirects -function get_all_redirects($membres, $exclude, $mls, &$client) +function get_all_redirects($membres, $mls, &$client) { global $globals; diff --git a/modules/xnetlists.php b/modules/xnetlists.php index 7fb3cff..50fb5bb 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -123,7 +123,6 @@ class XnetListsModule extends ListsModule $this->prepare_client($page); $page->changeTpl('xnetlists/create.tpl'); - $page->assign('force_list_super', may_update()); if (!Post::has('submit')) { return; diff --git a/templates/lists/header_listes.tpl b/templates/lists/header_listes.tpl index 07aba7a..708534b 100644 --- a/templates/lists/header_listes.tpl +++ b/templates/lists/header_listes.tpl @@ -46,7 +46,7 @@ {/if} - {if $details.own || $smarty.session.perms eq admin || $force_list_super} + {if $details.own || $smarty.session.perms eq admin || ($it_is_xnet && $is_admin)} Administrer la liste : @@ -73,7 +73,8 @@ {/if} - {if $smarty.session.perms eq admin || $force_list_super} + {if $smarty.session.perms eq admin || ($it_is_xnet && $is_admin)} + Administrer (avancé) : @@ -90,7 +91,7 @@ {/if} - {if $it_is_xnet} + {if $it_is_xnet && ($details.own || $is_admin)} Synchroniser {if $on neq sync} diff --git a/templates/xnetgrp/announce-edit.tpl b/templates/xnetgrp/announce-edit.tpl index 1faaf2a..1c66937 100644 --- a/templates/xnetgrp/announce-edit.tpl +++ b/templates/xnetgrp/announce-edit.tpl @@ -36,7 +36,7 @@ function visibilityChange(box) {if $art.texte}
-{include file="xnet/groupe/form.announce.tpl" admin=true} +{include file="xnetgrp/form.announce.tpl" admin=true}
{/if} diff --git a/templates/xnetgrp/asso.tpl b/templates/xnetgrp/asso.tpl index ba5b0dd..be5194f 100644 --- a/templates/xnetgrp/asso.tpl +++ b/templates/xnetgrp/asso.tpl @@ -139,7 +139,7 @@ {if $articles->total()}
{iterate item=art from=$articles} -{include file="xnet/groupe/form.announce.tpl"} +{include file="xnetgrp/form.announce.tpl"}
{/iterate}
-- 2.1.4