Fixes php notice.
[platal.git] / templates / wiki.tpl
index d7f0a55..6565c97 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
   </tr>
   <tr>
     <td>
-      <select onchange="dynpostkv('{$wikipage}', 'setrperms', this.value)">
+      <select onchange="$.dynPost('{$wikipage}', 'setrperms', this.value)">
       {html_options options=$perms_opts selected=$perms[0]}
       </select>
     </td>
     <td>
-      <select onchange="dynpostkv('{$wikipage}', 'setwperms', this.value)">
+      <select onchange="$.dynPost('{$wikipage}', 'setwperms', this.value)">
       {html_options options=$perms_opts selected=$perms[1]}
       </select>
     </td>
@@ -56,7 +56,7 @@
 </table>
 {/if}
 
-{if $text}
+{if t($text)}
 {$pmwiki|smarty:nodefaults}
 {else}
 {include file=$pmwiki_cache}