function changeTpl($tpl, $type = SKINNED)
{
- $this->_tpl = $tpl;
- $this->_page_type = $type;
- $this->assign('xorg_tpl', $tpl);
+ $this->_tpl = $tpl;
+ $this->_page_type = $type;
+ $this->assign('xorg_tpl', $tpl);
}
// }}}
$this->assign('xorg_failure', $this->_failure);
$this->assign('globals', $globals);
+ if (Env::v('display') == 'light') {
+ $this->_page_type = SIMPLE;
+ } elseif (Env::v('display') == 'raw') {
+ $this->_page_type = NO_SKIN;
+ } elseif (Env::v('display') == 'full') {
+ $this->_page_typ = SKINNED;
+ }
+
switch ($this->_page_type) {
case NO_SKIN:
error_reporting(0);
break;
}
-if (Env::v('display') == 'light') {
- $page->assign('simple', true);
-}
-
$page->assign('perms', $perms);
$page->assign('perms_opts', wiki_perms_options());