From 0a6f5eebc80a0301119ae16e79ba08814e748f77 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 10 Jun 2007 19:11:45 +0000 Subject: - compile time support for vdr-1.5.3 (runtime? could not test yet ;) ) --- pages/timers.ecpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/timers.ecpp b/pages/timers.ecpp index 3853684..c78a4d0 100644 --- a/pages/timers.ecpp +++ b/pages/timers.ecpp @@ -59,7 +59,13 @@ using namespace vdrlive; <%cpp> for (SortedTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) { - string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day()); + string currentDay = timer->WeekDays() > 0 ? +#if VDRVERSNUM < 10503 + *cTimer::PrintDay(0, timer->WeekDays()) : +#else + *cTimer::PrintDay(0, timer->WeekDays(), true) : +#endif + FormatDateTime(tr("%A, %x"), timer->Day()); if (previousDay != currentDay) { if (!previousDay.empty()) { @@ -73,7 +79,14 @@ using namespace vdrlive; -- cgit v1.2.3
- <$ timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day()) $> + <$ timer->WeekDays() > 0 ? +#if VDRVERSNUM < 10503 + *cTimer::PrintDay(0, timer->WeekDays()) : +#else + *cTimer::PrintDay(0, timer->WeekDays(), true) : +#endif + + FormatDateTime(tr("%A, %x"), timer->Day()) $>