merge fixes.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 7 Oct 2006 08:45:57 +0000 (08:45 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 7 Oct 2006 08:45:57 +0000 (08:45 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@952 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/platal.php
templates/xnetevents/admin.tpl

index 7bd94ff..5e6374a 100644 (file)
@@ -131,7 +131,7 @@ class Platal
             $this->path = 'index';
         }
 
-        $page->assign_by_ref('platal', $this);
+        $page->assign('platal', $this);
         switch ($this->call_hook($page)) {
           case PL_FORBIDDEN:
             $this->__mods['core']->handler_403($page);
@@ -141,6 +141,8 @@ class Platal
             $this->__mods['core']->handler_404($page);
             break;
         }
+
+        $page->assign('platal', $this);
         $page->run();
     }
 
index 1b1af9e..718a7dd 100644 (file)
@@ -45,9 +45,9 @@ L'
 {/if}
 
 <p class="center">
-[<a href="{$platal->path}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
+[<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
 {foreach from=$alphabet item=c}
-[<a href="{$platal->path}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
+[<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
 {/foreach}
 </p>
 
@@ -159,7 +159,7 @@ Ils ont pay
 
 <p class="descr">
 {foreach from=$links item=ofs key=txt}
-<a href="{$platal->path}?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
+<a href="{$platal->pl_self()}?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
 {/foreach}
 </p>
 
@@ -176,7 +176,7 @@ En tant qu'administrateur, tu peux fixer la venue (accompagn
 Donne ici son mail, ainsi que le nombre de participants.
 </p>
 
-<form action="{$platal->path}" method="post" id="inscription">
+<form action="{$platal->pl_self()}" method="post" id="inscription">
   <p class="descr">
     <input type="hidden" name="adm" value="nbs" />
 
@@ -209,7 +209,7 @@ entrer un montant n
 Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous
 </p>
 
-<form action="{$platal->path}" method="post" id="montant">
+<form action="{$platal->pl_self()}" method="post" id="montant">
   <p class="descr">
   <input type="hidden" name="adm" value="prix" />
   Mail: <input name="mail" size="20" />