Refactored a bunch of the display logic, added handling to avoid the infinite redirect loop in the controller.
This commit is contained in:
parent
4307594ab5
commit
6bd87d270d
5 changed files with 171 additions and 110 deletions
|
@ -206,22 +206,7 @@ class Module extends Object
|
|||
}
|
||||
else
|
||||
{
|
||||
switch ($name)
|
||||
{
|
||||
case 'engine':
|
||||
$default = DISPLAY_PHP;
|
||||
break;
|
||||
|
||||
case 'template':
|
||||
$default = 'index';
|
||||
break;
|
||||
|
||||
default:
|
||||
$default = false;
|
||||
break;
|
||||
}
|
||||
|
||||
$this->$name = $default;
|
||||
$this->$name = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue