diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-02-03 13:53:23 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-02-03 13:53:23 +0000 |
commit | 5a01923aff6dcb460b0b04d30be86eb25a7abc90 (patch) | |
tree | acb60c8469af07ce5b6bfc2a20955a29694abdb3 | |
parent | c6aaa2c52c4ca3c9c3ecd95ceed29bc75b3be1a3 (diff) | |
download | acf-core-5a01923aff6dcb460b0b04d30be86eb25a7abc90.tar.bz2 acf-core-5a01923aff6dcb460b0b04d30be86eb25a7abc90.tar.xz |
Allow viewtype override in clientdata in mvc
-rwxr-xr-x | lua/mvc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua index 731f297..c53d576 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -177,6 +177,11 @@ dispatch = function (self, userprefix, userctlr, useraction, clientdata) controller.worker.mvc.post_exec ( controller ) end + -- Before we start checking for views, set the viewtype + if self.clientdata.viewtype then + self.conf.viewtype = self.clientdata.viewtype + end + if not self.conf.suppress_view then local viewfunc, p1, p2, p3 = controller:view_resolver() viewfunc (viewtable, p1, p2, p3) |