aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-22 14:08:20 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-22 14:08:20 -0800
commit6f27e8db38c148172017255f9fe442c15b6a843a (patch)
tree3fe23e767da49448be5d199c405ff1f5d6bf0f4d /mod/events.php
parent292b02b58ccb18d10de948d30ccc0cc6ba345d5e (diff)
parent4c84a2ce615be12adfbeb1067b5c6652330027bb (diff)
downloadvolse-hubzilla-6f27e8db38c148172017255f9fe442c15b6a843a.tar.gz
volse-hubzilla-6f27e8db38c148172017255f9fe442c15b6a843a.tar.bz2
volse-hubzilla-6f27e8db38c148172017255f9fe442c15b6a843a.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Conflicts: version.inc
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/events.php b/mod/events.php
index c3731bf1c..7220a3d42 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -280,11 +280,15 @@ function events_content(&$a) {
// $plaintext = false;
+ $first_day = get_pconfig(local_channel(),'system','cal_first_day');
+ $first_day = (($first_day) ? $first_day : 0);
+
$htpl = get_markup_template('event_head.tpl');
$a->page['htmlhead'] .= replace_macros($htpl,array(
'$baseurl' => $a->get_baseurl(),
'$editselect' => (($plaintext) ? 'none' : 'textareas'),
- '$lang' => $a->language
+ '$lang' => $a->language,
+ '$first_day' => $first_day
));
$o ="";
@@ -689,11 +693,11 @@ function events_content(&$a) {
'$required' => '<span class="required" title="' . t('Required') . '">*</span>',
'$ModalCANCEL' => t('Cancel'),
'$ModalOK' => t('OK'),
- '$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true),
+ '$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true,$first_day),
'$n_text' => t('Finish date/time is not known or not relevant'),
'$n_checked' => $n_checked,
'$f_text' => t('Event Finishes:'),
- '$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text'),
+ '$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text','',false,$first_day),
'$adjust' => array('adjust', t('Adjust for viewer timezone'), $a_checked, t('Important for events that happen in a particular place. Not practical for global holidays.'),),
'$a_text' => t('Adjust for viewer timezone'),
'$d_text' => t('Description:'),