From 43131de03d404f970bb23b075cdd4de2b4cec240 Mon Sep 17 00:00:00 2001 From: BibLibre Date: Tue, 20 Mar 2012 15:44:55 +0100 Subject: [PATCH] bug 7173 : systempreferences :Internal server Error internal server error is caused by sub modification of a "global variable" in a pl file Debugging systempreferences for usage with Plack --- admin/systempreferences.pl | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index ccbcacf..0baed3b 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -40,8 +40,7 @@ ALSO : =cut -use strict; -use warnings; +use Modern::Perl; use CGI; use MIME::Base64; @@ -65,7 +64,7 @@ use C4::Output; # Because some things *should* be on more than one tab. # And the tabname is the unique part (the key). -my %tabsysprefs; +state %tabsysprefs; # Acquisitions $tabsysprefs{acquisitions} = "Acquisitions"; -- 1.7.2.5