[vhffs-dev] [1696] No more HTML::Template in group deletion. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1696
Author: beuss
Date: 2011-05-09 22:14:01 +0200 (Mon, 09 May 2011)
Log Message:
-----------
No more HTML::Template in group deletion.
Modified Paths:
--------------
trunk/vhffs-panel/group/delete.pl
Modified: trunk/vhffs-panel/group/delete.pl
===================================================================
--- trunk/vhffs-panel/group/delete.pl 2011-05-09 20:13:54 UTC (rev 1695)
+++ trunk/vhffs-panel/group/delete.pl 2011-05-09 20:14:01 UTC (rev 1696)
@@ -32,7 +32,6 @@
use utf8;
use POSIX qw(locale_h);
-use HTML::Template;
use locale;
use Locale::gettext;
use CGI;
@@ -40,12 +39,9 @@
use strict;
use lib '%VHFFS_LIB_DIR%';
-use Vhffs::User;
use Vhffs::Main;
use Vhffs::Group;
use Vhffs::Panel::Main;
-use Vhffs::Panel::Menu;
-use Vhffs::Panel::Group;
my $panel = new Vhffs::Panel::Main();
exit 0 unless $panel;
@@ -86,9 +82,6 @@
}
}
-my $template = new HTML::Template( filename => $templatedir.'/panel/misc/simplemsg.tmpl' );
-$template->param( MESSAGE => $message );
-
-$panel->set_refresh_url( '/group/prefs.pl' );
-$panel->build( $template );
-$panel->display;
+if(defined $message) {
+ $panel->render('misc/message.tt', { message => $message, refresh_url => '/group/prefs.pl?group='.$group->get_groupname });
+}