diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-20 19:16:54 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-20 19:16:54 +0000 |
commit | e4936e67782f6b41901deee9ed0a1deabf8f2068 (patch) | |
tree | 754c0e7ef517a61f96deb53a4f199ccdcab7600d /tntconfig.cpp | |
parent | cd961ae77617800bb007874a8ef788cb70debccb (diff) | |
download | vdr-plugin-live-e4936e67782f6b41901deee9ed0a1deabf8f2068.tar.gz vdr-plugin-live-e4936e67782f6b41901deee9ed0a1deabf8f2068.tar.bz2 |
- Make AJAX work when no 'epgImages' path has been specified.
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r-- | tntconfig.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |