Skip to content

Commit

Permalink
$_icons and $themeSettings view variables need to be set early on
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Nov 20, 2014
1 parent bb78628 commit a75dee5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Croogo/View/Helper/ThemeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(View $View, $settings = array()) {
}

parent::__construct($View);

$this->__setupDeprecatedViewVars();
}

/**
Expand All @@ -49,7 +51,7 @@ public function __construct(View $View, $settings = array()) {
* @param string $viewFile The view file that is going to be rendered
* @return void
*/
public function beforeRender($viewFile = null) {
private function __setupDeprecatedViewVars() {
// TODO: Remove in 2.3
$this->_View->set('_icons', $this->_iconMap);
$this->_View->set('themeSettings', $this->_themeSettings);
Expand Down

0 comments on commit a75dee5

Please sign in to comment.