Refactored a bunch of the display logic, added handling to avoid the infinite redirect loop in the controller.

This commit is contained in:
Josh Sherman 2010-09-19 19:13:11 -04:00
parent 4307594ab5
commit 6bd87d270d
5 changed files with 171 additions and 110 deletions

View file

@ -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;
}
}