Skip to content

Commit

Permalink
remove obtrusive dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Davka committed Aug 12, 2015
1 parent a25d192 commit d2c5344
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions FavoritecourcesPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ public function __construct()
}

$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),
PluginEngine::getLink($this, array(), 'show/set_startpage'));
PageLayout::addBodyElements($question);
if ($this->start_page == '' && match_route('dispatch.php/my_courses')) {
$msg = array(sprintf('<a href="%s">%s</a>', PluginEngine::getLink($this, array('really' => true), 'show/set_startpage'), _('Ja')));
$msg[] = sprintf('<a href="%s">%s</a>', PluginEngine::getLink($this, array('cancel' => true), 'show/set_startpage'), _('Nein'));
PageLayout::postMessage(MessageBox::info(_('Wollen Sie die Favoritenliste (Reiter "Meiner Favoriten") als Startseite einstellen?'), $msg));
}

if (Navigation::hasItem('/browse')) {
Expand Down

0 comments on commit d2c5344

Please sign in to comment.