Browse Source

Plugins like listcommands should not close their own pages without displaying errors; easiest way to do that is use footer.tpl

pdontthink 18 years ago
parent
commit
ec6120f977

+ 1 - 1
plugins/listcommands/functions.php

@@ -169,7 +169,7 @@ function plugin_listcommands_menu_do() {
 
 
     if (count($links) > 0) {
-        $oTemplate->assign('links', $links);
+        $oTemplate->assign('links', $links, FALSE);
         $output = $oTemplate->fetch('plugins/listcommands/read_body_header.tpl');
         return array('read_body_header' => $output);
     }

+ 1 - 1
plugins/listcommands/mailout.php

@@ -84,4 +84,4 @@ echo '<br />' .
     addSubmit(_("Send Mail"), 'send');
 ?>
 <br /><br />
-</form></td></tr></table></p></body></html>
+</form></td></tr></table></p></body></html>

+ 1 - 0
plugins/listcommands/options.php

@@ -74,5 +74,6 @@ displayPageHeader($color, 'None');
 
 $oTemplate->assign('lists', $lists);
 $oTemplate->display('plugins/listcommands/non_rfc_lists.tpl');
+$oTemplate->display('footer.tpl');
 
 

+ 0 - 2
plugins/listcommands/templates/default/non_rfc_lists.tpl

@@ -62,5 +62,3 @@ extract($t);
 </table>
 </div>
 </form>
-</body>
-</html>