From d89e5ce6c645b6e097ebe4c6628b29dbd09d513f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 16 Feb 2016 15:51:52 +0100 Subject: [PATCH] ShowController: web does not depend on template --- application/controllers/ShowController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php index 318f2b7..8c834ce 100644 --- a/application/controllers/ShowController.php +++ b/application/controllers/ShowController.php @@ -35,10 +35,8 @@ class ShowController extends Controller $config = $this->Config(); $this->templateStore = new TemplateStore(); $this->baseUrl = $this->Config()->get('graphite', 'web_url'); - if ($this->template = $this->view->template = $this->loadTemplate()) { - $graphite = $this->graphiteWeb = new GraphiteWeb($this->baseUrl); - } - + $graphite = $this->graphiteWeb = new GraphiteWeb($this->baseUrl); + $this->template = $this->view->template = $this->loadTemplate(); $this->params->shift('r'); }