From 8edd4eb02751bbf45ab2833102dee3707fbbd499 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 20 Jun 2010 18:17:42 +0200 Subject: Reaction to a patch sent by Jan Willies for an other problem with tntnet version string. Jan's patch resolved the immediate problem with regard to the updated version but was not backwards compatible for older tntnet version. My changes to the code adressed that problem and added an enhancement how to deal with that problem in the future. --- pages/pageelems.ecpp | 3 ++- pages/recordings.ecpp | 2 +- pages/recstream.ecpp | 3 ++- pages/vlc.ecpp | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'pages') diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 58a1746..87ca604 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -4,6 +4,7 @@ #include #include "exception.h" #include "livefeatures.h" +#include "tntfeatures.h" #include "i18n.h" #include "setup.h" #include "timers.h" @@ -124,7 +125,7 @@ int update_status(1); string linkText; <%cpp> -#if TNTVERSION >= 1700 +#if TNT_WATCHDOG_SILENCE { " alt="" <& tooltip.hint text=(tr("Stream this recording into browser.")) &>> <$ linkText $> <%cpp> diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp index 7b57c11..76bbe65 100644 --- a/pages/recordings.ecpp +++ b/pages/recordings.ecpp @@ -116,7 +116,7 @@ for (iter = recordingsTree->begin(path); iter != end; ++iter) {
  • <& rec_item_dir name=(recItem->Name()) level=(level) &> <%cpp> -#if TNTVERSION >= 1606 +#if TNT_HAS_QUERYPARAMS tnt::QueryParams recItemParams(qparam, false); #else cxxtools::QueryParams recItemParams(qparam, false); diff --git a/pages/recstream.ecpp b/pages/recstream.ecpp index 552fb87..015206e 100644 --- a/pages/recstream.ecpp +++ b/pages/recstream.ecpp @@ -6,6 +6,7 @@ #include #include #include +#include "tntfeatures.h" #include "setup.h" #include "recman.h" @@ -58,7 +59,7 @@ if (recording) { if (!reply.out()) { return HTTP_GONE; } -#if TNTVERSION >= 1700 +#if TNT_WATCHDOG_SILENCE request.touch(); // retrigger the watchdog. #endif } diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp index 065969c..d1f1405 100644 --- a/pages/vlc.ecpp +++ b/pages/vlc.ecpp @@ -5,6 +5,7 @@ #include "setup.h" #include "tools.h" #include "users.h" +#include "tntfeatures.h" using namespace std; using namespace vdrlive; @@ -97,7 +98,7 @@ using namespace vdrlive; } <%cpp> -#if TNTVERSION >= 1606 +#if TNT_HAS_GETHOST string server = request.getHost(); server = server.substr(0, server.rfind(':')); #else -- cgit v1.2.3