[vhffs-dev] [1706] All that mess isn't needed anymore.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1706
Author:   beuss
Date:     2011-05-12 22:21:31 +0200 (Thu, 12 May 2011)
Log Message:
-----------
All that mess isn't needed anymore.

Modified Paths:
--------------
    trunk/vhffs-panel/group/prefs.pl

Modified: trunk/vhffs-panel/group/prefs.pl
===================================================================
--- trunk/vhffs-panel/group/prefs.pl	2011-05-12 20:10:41 UTC (rev 1705)
+++ trunk/vhffs-panel/group/prefs.pl	2011-05-12 20:21:31 UTC (rev 1706)
@@ -46,7 +46,6 @@
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Group;
 use Vhffs::Panel::Object;
-use Vhffs::Panel::Template;
 use Vhffs::Services::MailGroup;
 use Vhffs::Tag;
 use Vhffs::Tag::Category;
@@ -60,9 +59,7 @@
 
 my $vhffs = $panel->{'vhffs'};
 my $user = $panel->{'user'};
-my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};
-my $template;
 
 my $group = Vhffs::Group::get_by_groupname( $vhffs , $cgi->param('group') );
 my $vars = {};
@@ -73,9 +70,6 @@
 } elsif( !$user->can_view( $group ) ) {
     $panel->render('misc/message.tt', { message => gettext( 'You\'re not allowed to do this, object is not in active state or you don\'t have enough ACL rights' ) } );
 } else {
-	$template = new Vhffs::Panel::Template( filename => $templatedir.'/panel/group/prefs.tmpl', global_vars => 1, 
-		die_on_bad_params => 0, loop_context_vars => 1  );
-
 	if( defined( $cgi->param( 'update_desc_submit' ) ) ) {
 		# Description modification
 		unless( $user->can_modify( $group ) ) {
@@ -206,14 +200,6 @@
     $vars->{use_avatar} = $panel->use_groups_avatars;
     $vars->{group_users} = Vhffs::Panel::Group::getall_users( $vhffs , $group->get_gid );
 
-    if($user->is_admin) {
-        $template->param( ADMIN => 1 );
-        my $adminpart = Vhffs::Panel::Object::admin_part( $panel, $group );
-        $template->param( ADMIN_PART => $adminpart->output ) if( defined $adminpart );
-        $template->param( QUOTA => $group->get_quota );
-        $template->param( USED_QUOTA => $group->get_quota_used );
-    }
-    
     fill_tags();
     $panel->render('group/prefs.tt', $vars);
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/