[icinga-checkins] icinga.org: icingaweb2-module-director/master: Web/Controller: replace this->render()

git at icinga.org git at icinga.org
Tue Jun 14 13:13:22 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 12764c84825eaa5bc05c87fbc2a53b43cd22958d
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=12764c84825eaa5bc05c87fbc2a53b43cd22958d

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon Jun 13 20:06:58 2016 +0200

Web/Controller: replace this->render()

---

 library/Director/Web/Controller/ObjectController.php  |    2 +-
 library/Director/Web/Controller/ObjectsController.php |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php
index 80d267a..5639c32 100644
--- a/library/Director/Web/Controller/ObjectController.php
+++ b/library/Director/Web/Controller/ObjectController.php
@@ -223,7 +223,7 @@ abstract class ObjectController extends ActionController
             array('class' => 'icon-left-big')
         );
 
-        $this->render('object/form', null, true);
+        $this->setViewScript('object/form');
     }
 
     public function fieldsAction()
diff --git a/library/Director/Web/Controller/ObjectsController.php b/library/Director/Web/Controller/ObjectsController.php
index a097e25..f4e84e1 100644
--- a/library/Director/Web/Controller/ObjectsController.php
+++ b/library/Director/Web/Controller/ObjectsController.php
@@ -173,7 +173,7 @@ abstract class ObjectsController extends ActionController
         $this->getTabs()->activate('tree');
         $this->view->tree = $this->db()->fetchTemplateTree(strtolower($this->getType()));
         $this->view->objectTypeName = $this->getType();
-        $this->render('objects/tree', null, true);
+        $this->setViewScript('objects/tree');
     }
 
     protected function dummyObject()



More information about the icinga-checkins mailing list