]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Layout/Admin.pm
init_sub_layouts ist sauberer
[mfinanz.git] / SL / Layout / Admin.pm
index 188655fae01dae1f965782816c39c37ffd1851ff..00e31254030bc6cb2d4b718a430380e0bf6d7823 100644 (file)
@@ -3,16 +3,8 @@ package SL::Layout::Admin;
 use strict;
 use parent qw(SL::Layout::Base);
 
-sub new {
-  my ($class, @slurp) = @_;
-
-  my $self = $class->SUPER::new(@slurp);
-
-  $self->add_sub_layouts([
-    SL::Layout::None->new,
-  ]);
-
-  $self;
+sub init_sub_layouts {
+  [ SL::Layout::None->new ]
 }
 
 sub start_content {