Also here (was committed in other branch, too. :-( )

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 11:02:57 +01:00
parent a9bed1422e
commit 40dc3774e4

View File

@ -191,8 +191,9 @@ function events_content(&$a) {
return; return;
} }
if($a->argc == 1) if ($a->argc == 1) {
$_SESSION['return_url'] = App::get_baseurl() . '/' . $a->cmd; $_SESSION['return_url'] = App::get_baseurl() . '/' . $a->cmd;
}
if (($a->argc > 2) && ($a->argv[1] === 'ignore') && intval($a->argv[2])) { if (($a->argc > 2) && ($a->argv[1] === 'ignore') && intval($a->argv[2])) {
$r = q("update event set ignore = 1 where id = %d and uid = %d", $r = q("update event set ignore = 1 where id = %d and uid = %d",
@ -208,14 +209,16 @@ function events_content(&$a) {
); );
} }
if ($a->theme_events_in_profile) if ($a->theme_events_in_profile) {
nav_set_selected('home'); nav_set_selected('home');
else } else {
nav_set_selected('events'); nav_set_selected('events');
}
$editselect = 'none'; $editselect = 'none';
if( feature_enabled(local_user(), 'richtext') ) if ( feature_enabled(local_user(), 'richtext') ) {
$editselect = 'textareas'; $editselect = 'textareas';
}
// get the translation strings for the callendar // get the translation strings for the callendar
$i18n = get_event_strings(); $i18n = get_event_strings();