aboutsummaryrefslogtreecommitdiff
path: root/pages/relive.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-02 16:38:50 +0100
committerMaZderMind2015-03-02 16:38:50 +0100
commit40c699e1a307919f65a52632ddf816a735dde8a0 (patch)
treeef0bde4da4ec047f20b8c1c5c4e4fd706a88e696 /pages/relive.php
parent583092bff8d82cc5eacd9759f751bbc6e89974cf (diff)
Relive
Diffstat (limited to 'pages/relive.php')
-rw-r--r--pages/relive.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/pages/relive.php b/pages/relive.php
index 362af34..33e0d5a 100644
--- a/pages/relive.php
+++ b/pages/relive.php
@@ -2,17 +2,8 @@
require_once('lib/bootstrap.php');
-$talks = file_get_contents(get('OVERVIEW.RELIVE_JSON'));
-$talks = utf8_decode($talks);
-$talks = json_decode($talks, true);
-
-usort($talks, function($a, $b) {
- $sort = array('live', 'recorded', 'released');
- return array_search($a['status'], $sort) > array_search($b['status'], $sort);
-});
-
echo $tpl->render(array(
'page' => 'relive',
'title' => 'Relive!',
- 'talks' => $talks,
+ 'talks' => relive_talks(),
));