From: Raphaël Barrois Date: Tue, 22 Feb 2011 21:35:15 +0000 (+0100) Subject: Fix the 'view as text' link for NLs (Closes #1395) X-Git-Tag: xorg/1.1.0~1^2~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c8fc2813efd96bfb6831ae936ad26302485d4208;p=platal.git Fix the 'view as text' link for NLs (Closes #1395) Signed-off-by: Raphaël Barrois --- diff --git a/include/newsletter.inc.php b/include/newsletter.inc.php index 6a1060e..b8c248e 100644 --- a/include/newsletter.inc.php +++ b/include/newsletter.inc.php @@ -433,7 +433,7 @@ class NewsLetter /** Get the prefix leading to the page for this NL * Only X.org / AX / X groups may be seen on X.org. */ - public function prefix() + public function prefix($enforce_xnet=true) { if (!empty($GLOBALS['IS_XNET_SITE'])) { return $this->group . '/nl'; @@ -447,7 +447,7 @@ class NewsLetter return 'epletter'; default: // Don't display groups NLs on X.org - assert(false); + assert(!$enforce_xnet); } } diff --git a/templates/newsletter/show.tpl b/templates/newsletter/show.tpl index 39f83a6..d81ff65 100644 --- a/templates/newsletter/show.tpl +++ b/templates/newsletter/show.tpl @@ -26,9 +26,9 @@

{if $smarty.get.text} - [version HTML] + [version HTML] {else} - [version Texte] + [version Texte] {/if} {if $nl->mayEdit()} [Éditer]