From a314f93ac2e6d217444bc31ddd5ab51c0f5697d9 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 20 Sep 2013 00:06:20 +1200 Subject: [PATCH] Bug 10915 - about->timeline broken on upgraded Koha Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- about.pl | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/about.pl b/about.pl index ef45340..0ba7291 100755 --- a/about.pl +++ b/about.pl @@ -148,7 +148,15 @@ $template->param( table => $table ); ## Koha time line code #get file location -my $docdir = C4::Context->config('docdir'); +my $docdir; +if ( defined C4::Context->config('docdir') ) { + $docdir = C4::Context->config('docdir'); +} else { + # if no is defined in koha-conf.xml, use the default location + # this is a work-around to stop breakage on upgraded Kohas, bug 8911 + $docdir = C4::Context->config('intranetdir') . '/docs'; +} + open( my $file, "<", "$docdir" . "/history.txt" ); my $i = 0; -- 1.7.7.6