~ubuntu-branches/ubuntu/hardy/vdr-plugin-live/hardy

« back to all changes in this revision

Viewing changes to debian/patches/92_live-0.1.0-1.5.3.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schmidt
  • Date: 2007-07-02 21:02:17 UTC
  • Revision ID: james.westby@ubuntu.com-20070702210217-jm77uheo6rbcc2po
Tags: 0.1.0-4
Added Thomas Günther and myself to Uploaders and debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 92_live-0.1.0-1.5.3.dpatch by Thomas G�nther <tom@toms-cafe.de>
 
3
## http://toms-cafe.de/vdr/download/live-0.1.0-1.5.3.diff
 
4
##
 
5
## All lines beginning with `## DP:' are a description of the patch.
 
6
## DP: Changes for VDR >= 1.5.3.
 
7
 
 
8
@DPATCH@
 
9
--- live-0.1.0/pages/timers.ecpp
 
10
+++ live-0.1.0/pages/timers.ecpp
 
11
@@ -59,7 +59,11 @@ using namespace vdrlive;
 
12
                        <table class="timers" cellspacing="0" cellpadding="0">
 
13
 <%cpp>
 
14
                                for (SortedTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
 
15
+#if VDRVERSNUM >= 10503
 
16
+                                       string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays(), true) :                                                     FormatDateTime(tr("%A, %x"), timer->Day());
 
17
+#else
 
18
                                        string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) :                                                   FormatDateTime(tr("%A, %x"), timer->Day());
 
19
+#endif
 
20
                                        if (previousDay != currentDay) {
 
21
                                                if (!previousDay.empty()) {
 
22
 </%cpp>
 
23
@@ -73,7 +77,7 @@ using namespace vdrlive;
 
24
                                <tr class="head">
 
25
                                        <td colspan="10">
 
26
                                                <div class="boxheader"><div><div>
 
27
-                                                       <$ timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day()) $>
 
28
+                                                       <$ currentDay $>
 
29
                                                </div></div></div>
 
30
                                        </td>
 
31
                                </tr>