Browse code

Zeige Newsletter für zwei Jahre zurück

Bernd Wurst authored on 19/02/2016 05:00:42
Showing 2 changed files
... ...
@@ -28,7 +28,7 @@ function get_newsletter_address() {
28 28
 
29 29
 
30 30
 function get_latest_news() {
31
-  $result = db_query("SELECT id, date, subject, content FROM misc.news WHERE date > CURDATE() - INTERVAL 1 YEAR ORDER BY date DESC");
31
+  $result = db_query("SELECT id, date, subject, content FROM misc.news WHERE date > CURDATE() - INTERVAL 2 YEAR ORDER BY date DESC");
32 32
   $ret = array();
33 33
   while ($item = $result->fetch()) {
34 34
     $ret[] = $item;
... ...
@@ -42,7 +42,7 @@ $form = '<p><input type="radio" id="newsletter_yes" name="newsletter" value="yes
42 42
 output(html_form("newsletter", "save.php", "", $form));
43 43
 
44 44
 output("<h3>Vergangene Newsletter</h3>
45
-<p>Hier sehen Sie die Newsletter des vergangenen Jahres zum Nachlesen.</p>");
45
+<p>Hier sehen Sie die Newsletter der vergangenen Jahre zum Nachlesen.</p>");
46 46
 
47 47
 output("<ul>");
48 48
 $news = get_latest_news();