X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fevents.php;h=ac0c444cb5068c1b6923e91edfd5bb7d176259b1;hb=5471dd79e89821909649b37e4f88d42f897e27a2;hp=1ed04deb08012c6de425350ab32e4c42e10ca37d;hpb=c0df692f5fc4eaadb322614069b2c7ed40453fa1;p=friendica.git diff --git a/mod/events.php b/mod/events.php index 1ed04deb08..ac0c444cb5 100644 --- a/mod/events.php +++ b/mod/events.php @@ -8,7 +8,7 @@ require_once('include/datetime.php'); require_once('include/event.php'); require_once('include/items.php'); -function events_init(App &$a) { +function events_init(App $a) { if (! local_user()) { return; } @@ -31,7 +31,7 @@ function events_init(App &$a) { return; } -function events_post(App &$a) { +function events_post(App $a) { logger('post: ' . print_r($_REQUEST,true)); @@ -189,7 +189,7 @@ function events_post(App &$a) { -function events_content(App &$a) { +function events_content(App $a) { if (! local_user()) { notice( t('Permission denied.') . EOL); @@ -220,11 +220,6 @@ function events_content(App &$a) { nav_set_selected('events'); } - $editselect = 'none'; - if ( feature_enabled(local_user(), 'richtext') ) { - $editselect = 'textareas'; - } - // get the translation strings for the callendar $i18n = get_event_strings(); @@ -234,13 +229,11 @@ function events_content(App &$a) { '$module_url' => '/events', '$modparams' => 1, '$i18n' => $i18n, - '$editselect' => $editselect )); $etpl = get_markup_template('event_end.tpl'); $a->page['end'] .= replace_macros($etpl,array( '$baseurl' => App::get_baseurl(), - '$editselect' => $editselect )); $o =""; @@ -354,7 +347,7 @@ function events_content(App &$a) { } } - $events=array(); + $events = array(); // transform the event in a usable array if (dbm::is_result($r)) { @@ -393,7 +386,7 @@ function events_content(App &$a) { '$title' => t('Events'), '$view' => t('View'), '$new_event' => array(App::get_baseurl().'/events/new',t('Create New Event'),'',''), - '$previus' => array(App::get_baseurl()."/events/$prevyear/$prevmonth",t('Previous'),'',''), + '$previous' => array(App::get_baseurl()."/events/$prevyear/$prevmonth",t('Previous'),'',''), '$next' => array(App::get_baseurl()."/events/$nextyear/$nextmonth",t('Next'),'',''), '$calendar' => cal($y,$m,$links, ' eventcal'),