From f48084e1d68429235a5655a92b463cc5099be646 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 31 Mar 2015 17:20:10 +0200 Subject: Rename program -> schedule --- index.php | 4 ++-- view/program-json.php | 8 -------- view/schedule-json.php | 8 ++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 view/program-json.php create mode 100644 view/schedule-json.php diff --git a/index.php b/index.php index 43fb9ce..d7b92c8 100644 --- a/index.php +++ b/index.php @@ -44,9 +44,9 @@ try { include('view/about.php'); } - else if(preg_match('@^program.json$@', $route, $m)) + else if(preg_match('@^schedule.json$@', $route, $m)) { - include('view/program-json.php'); + include('view/schedule-json.php'); } else if(preg_match('@^feedback$@', $route, $m)) diff --git a/view/program-json.php b/view/program-json.php deleted file mode 100644 index 739b71b..0000000 --- a/view/program-json.php +++ /dev/null @@ -1,8 +0,0 @@ -isEnabled()) - throw new NotFoundException('Schedule is disabled'); - -header('Content-Type: application/json'); -echo json_encode($schedule->getSchedule()); diff --git a/view/schedule-json.php b/view/schedule-json.php new file mode 100644 index 0000000..739b71b --- /dev/null +++ b/view/schedule-json.php @@ -0,0 +1,8 @@ +isEnabled()) + throw new NotFoundException('Schedule is disabled'); + +header('Content-Type: application/json'); +echo json_encode($schedule->getSchedule()); -- cgit v1.2.3