Changing check for theme to empty

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4471 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-08 04:55:26 +00:00
parent 2bacc6603e
commit d791bd75b4

View file

@ -59,7 +59,7 @@ class ThemeView extends View {
function __construct (&$controller) {
parent::__construct($controller);
$this->theme =& $controller->theme;
if($this->theme !== null) {
if(empty($this->theme)) {
$this->themeWeb = 'themed/'.$this->theme.'/';
$this->themeElement = VIEWS.'themed'.DS.$this->theme.DS.'elements'.DS;
$this->themeLayout = VIEWS.'themed'.DS.$this->theme.DS.'layouts'.DS;