X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0f69c7262394cd4c831332f1e87a2b28ef6f6096..a8814e0ef7175fef00ba18195ba2d457095b96ad:/SL/Controller/Layout/Classic.pm diff --git a/SL/Controller/Layout/Classic.pm b/SL/Controller/Layout/Classic.pm index 6aac3e574..a4d99b451 100644 --- a/SL/Controller/Layout/Classic.pm +++ b/SL/Controller/Layout/Classic.pm @@ -11,33 +11,12 @@ sub new { my $self = $class->SUPER::new(@slurp); - $self->{top} = SL::Controller::Layout::Top->new; - $self->{left} = SL::Controller::Layout::MenuLeft->new; - - $self->use_stylesheet( - $self->{top}->stylesheets, - $self->{left}->stylesheets, - ); - - $self->use_javascript( - $self->{top}->javascripts, - $self->{left}->javascripts, - ); + $self->add_sub_layouts([ + SL::Controller::Layout::Top->new, + SL::Controller::Layout::MenuLeft->new, + ]); $self; } -sub pre_content { - $_[0]{top}->render . - $_[0]{left}->render; -} - -sub start_content { - "
\n"; -} - 1;