X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=f3fe6e5d9b49de814da4b2c0251c812a50b7b66b;hb=ef294a7520ae7e452f6671676d7a8077bf74a9cf;hp=55b6f695dc0abd257f3fec7ca6591af8eeee6d34;hpb=9fc09e82e0029be8a42c67d6414e33daf2a3eba8;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 55b6f695d..f3fe6e5d9 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -56,7 +56,7 @@ use SL::User; use Template; use URI; use List::Util qw(first max min sum); -use List::MoreUtils qw(any); +use List::MoreUtils qw(any apply); use strict; @@ -268,7 +268,7 @@ sub new { #$self->{version} = "2.6.1"; # Old hardcoded but secure style open VERSION_FILE, "VERSION"; # New but flexible code reads version from VERSION-file $self->{version} = ; - close VERSION_FILE; + close VERSION_FILE; $self->{version} =~ s/[^0-9A-Za-z\.\_\-]//g; # only allow numbers, letters, points, underscores and dashes. Prevents injecting of malicious code. $main::lxdebug->leave_sub(); @@ -475,7 +475,7 @@ sub info { print qq|

$msg

- + - + |; @@ -672,14 +672,19 @@ sub header { | if $self->{"fokus"}; - my $title_hack = qq| - - |; + # if there is a title, we put some JavaScript in to the page, wich writes a + # meaningful title-tag for our frameset. + my $title_hack; + if ($self->{"title"}){ + $title_hack = qq| + + |; + } #Set Calendar my $jsscript = ""; @@ -718,11 +723,10 @@ sub header { $ajax $fokus $title_hack - + -