little fix for x.net
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 28 Apr 2005 16:59:09 +0000 (16:59 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:51 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-615

htdocs/listes/archives.php
templates/listes/archives.tpl

index a8e66e9..f163945 100644 (file)
@@ -40,7 +40,7 @@ if (list($det) = $client->get_members($liste)) {
         if(strstr('/', $file)!==false || !preg_match(',^\d+/\d+$,', $rep)) {
             $page->kill("La liste n'existe pas ou tu n'as pas le droit de la consulter");
         } else { 
-            $page->assign('url', $globals->lists->spool."/{$globals->mail->domain}{$globals->lists->vhost_sep}$liste/$rep/$file");
+            $page->assign('archives', $globals->lists->spool."/{$globals->mail->domain}{$globals->lists->vhost_sep}$liste/$rep/$file");
         }
     } else {
         $archs = Array();
index 7bba92e..d974233 100644 (file)
@@ -76,9 +76,9 @@
   </tr>
   {/foreach}
 </table>
-{elseif $url}
+{elseif $archives}
 {tidy}
-{include file="$url"}
+{include file="$archives"}
 {/tidy}
 {/if}