Browse files

Correct loading of user favorite from viewVars

  • Loading branch information...
1 parent 1593527 commit ca49c0b6797d2c64584b30e6cfb4a5574e65e8df @rodrigorm committed Feb 14, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 View/Helper/FavoritesHelper.php
View
5 View/Helper/FavoritesHelper.php
@@ -47,10 +47,7 @@ class FavoritesHelper extends AppHelper {
* @return void
*/
public function beforeRender() {
- if (ClassRegistry::isKeySet('view')) {
- $View = ClassRegistry::getObject('view');
- $this->_userFavorites = $View->getVar('userFavorites');
- }
+ $this->_userFavorites = $this->_View->getVar('userFavorites');
}

0 comments on commit ca49c0b

Please sign in to comment.