Fixing theme class

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4472 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-08 05:15:04 +00:00
parent d791bd75b4
commit 869dbb6b05

View file

@ -59,7 +59,7 @@ class ThemeView extends View {
function __construct (&$controller) {
parent::__construct($controller);
$this->theme =& $controller->theme;
if(empty($this->theme)) {
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;