Skip to content

Commit

Permalink
fix startpage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Davka committed Aug 12, 2015
1 parent c5a8ea1 commit d90b2c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FavoritecourcesPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public function __construct()
return;
}

$start_page = UserConfig::get($GLOBALS['user']->id)->FAVORITE_COURSES_START_PAGE;
if ($start_page == '') {
$this->start_page = UserConfig::get($GLOBALS['user']->id)->FAVORITE_COURSES_START_PAGE;
if ($this->start_page == '') {
$question = createQuestion(_('Wollen Sie die Favoritenliste als Startseite einstellen?'),
array('really' => true),
array('cancel' => true),
Expand All @@ -33,7 +33,7 @@ public function __construct()
$navigation = new Navigation($this->getName());
$navigation->setURL(PluginEngine::GetURL($this, array(), 'show/index'));

if ($start_page == 'yes') {
if ($this->start_page == 'yes') {
Navigation::insertItem('/browse/fav_courses', $navigation, 'my_courses');
Navigation::getItem('/browse')->setURL($navigation->getURL());
} else {
Expand Down

0 comments on commit d90b2c7

Please sign in to comment.