aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2016-08-21 15:57:39 +0200
committerMaZderMind2016-08-21 15:58:01 +0200
commit913881497ed83503b461d0b554d62d330757f006 (patch)
treece99d169961dc7b48cd8236de03155ed73af257c
parent61773c808c4f058ac41a78cfcce96456ccd80a4b (diff)
refresh schedule-view regularly
-rw-r--r--template/page.phtml4
-rw-r--r--view/schedule.php1
2 files changed, 5 insertions, 0 deletions
diff --git a/template/page.phtml b/template/page.phtml
index 73a12ad..3969c12 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -18,6 +18,10 @@
<meta name="robots" content="index,follow" />
+ <? if(isset($refresh)): ?>
+ <meta http-equiv="refresh" content="<?=h($refresh)?>; URL=<?=h($canonicalurl)?>" />
+ <? endif ?>
+
<? if($conference->hasAuthor()): ?>
<meta name="author" content="<?=h($conference->getAuthor())?>" />
<? endif ?>
diff --git a/view/schedule.php b/view/schedule.php
index 776536b..4b2746d 100644
--- a/view/schedule.php
+++ b/view/schedule.php
@@ -4,5 +4,6 @@ echo $tpl->render(array(
'page' => 'schedule',
'title' => 'Schedule-Übersicht',
+ 'refresh' => 15*60,
'schedule' => new Schedule(),
));