From 999850bf0c4b8f375fa0db19c326c86ec27e16ed Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 9 Sep 2007 17:32:24 +0000 Subject: Fixing frameset title git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1548 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB.pm | 1 + UI/frameset.html | 2 +- scripts/menu.pl | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/LedgerSMB.pm b/LedgerSMB.pm index 6f32167d..37652d5b 100755 --- a/LedgerSMB.pm +++ b/LedgerSMB.pm @@ -139,6 +139,7 @@ sub new { bless $self, $type; my $query = ($argstr) ? new CGI($argstr) : new CGI; my $params = $query->Vars; + $self->{VERSION} = $VERSION; $self->merge($params); diff --git a/UI/frameset.html b/UI/frameset.html index 57a10768..4049f5c0 100644 --- a/UI/frameset.html +++ b/UI/frameset.html @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - + <?lsmb title ?><title> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> diff --git a/scripts/menu.pl b/scripts/menu.pl index 4e81b331..dec08671 100644 --- a/scripts/menu.pl +++ b/scripts/menu.pl @@ -64,6 +64,10 @@ creates the root document (currently a frameset). sub root_doc { my ($request) = @_; my $template; + + $request->{title} = "LedgerSMB $request->{VERSION} -- ". + "$request->{login} -- $request->{_user}->{dbname}"; + if (!$request->{menubar}){ $request->{main} = "splash.html" if $request->{main} eq 'company_logo'; $request->{main} = "am.pl?action=recurring_transactions" -- cgit v1.2.3