From 1f7a416b7d1ec8fcee83231bdb14c4c773dbf095 Mon Sep 17 00:00:00 2001 From: Oli Griffiths Date: Wed, 11 May 2016 00:37:24 -0400 Subject: [PATCH] Pass view name from query string if set --- code/controller/view.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/controller/view.php b/code/controller/view.php index 5126eda316..3ab8e8fccc 100644 --- a/code/controller/view.php +++ b/code/controller/view.php @@ -83,7 +83,11 @@ public function getView() { //Make sure we have a view identifier if(!($this->_view instanceof ObjectIdentifier)) { - $this->setView($this->_view); + if(!$this->getRequest()->query->has('view')) { + $this->setView($this->_view); + } else { + $this->setView($this->getRequest()->query->get('view', 'cmd')); + } } //Create the view