From e4936e67782f6b41901deee9ed0a1deabf8f2068 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 20 Jul 2007 19:16:54 +0000 Subject: - Make AJAX work when no 'epgImages' path has been specified. --- tntconfig.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index 286ada7..fc4217b 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -50,7 +50,10 @@ void TntConfig::WriteConfig() file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; // Epg images - file << "MapUrl ^/epgimages/(.*)\\.(.+) content@ " << LiveSetup().GetEpgImageDir() << "/$1.$2 image/$2" << endl; + string const epgImgPath(LiveSetup().GetEpgImageDir()); + if (!epgImgPath.empty()) { + file << "MapUrl ^/epgimages/(.*)\\.(.+) content@ " << epgImgPath << "/$1.$2 image/$2" << endl; + } // select additional (not build in) javascript. file << "MapUrl ^/js([^.]*/)(.*\\.js) content@ js$1$2 text/javascript" << endl; -- cgit v1.2.3