diff options
author | friendica <info@friendica.com> | 2012-06-25 21:20:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-25 21:20:08 -0700 |
commit | 359a98cd22318badd9c5bb1115678181b75c9edc (patch) | |
tree | c811c5e0e1a42a8b33249a15c8755784af03b294 /mod | |
parent | fbaca4b74237c80c380d6ccf2bdddeec5ad4f013 (diff) | |
download | volse-hubzilla-359a98cd22318badd9c5bb1115678181b75c9edc.tar.gz volse-hubzilla-359a98cd22318badd9c5bb1115678181b75c9edc.tar.bz2 volse-hubzilla-359a98cd22318badd9c5bb1115678181b75c9edc.zip |
change event behaviour so that title is required but description is not
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/events.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/events.php b/mod/events.php index e7b95d27a..4a6d3f100 100755 --- a/mod/events.php +++ b/mod/events.php @@ -62,8 +62,8 @@ function events_post(&$a) { $location = escape_tags(trim($_POST['location'])); $type = 'event'; - if((! $desc) || (! $start)) { - notice( t('Event description and start time are required.') . EOL); + if((! $summary) || (! $start)) { + notice( t('Event title and start time are required.') . EOL); goaway($a->get_baseurl() . '/events/new'); } @@ -412,9 +412,9 @@ function events_content(&$a) { '$uri' => $uri, '$title' => t('Event details'), - '$desc' => sprintf( t('Format is %s %s. Starting date and Description are required.'),$dateformat,$timeformat), + '$desc' => sprintf( t('Format is %s %s. Starting date and Title are required.'),$dateformat,$timeformat), - '$s_text' => t('Event Starts:') . ' <span class="required">*</span> ', + '$s_text' => t('Event Starts:') . ' <span class="required" title="' . t('Required') . '">*</span>', '$s_dsel' => datesel($f,'start',$syear+5,$syear,false,$syear,$smonth,$sday), '$s_tsel' => timesel('start',$shour,$sminute), '$n_text' => t('Finish date/time is not known or not relevant'), @@ -424,11 +424,11 @@ function events_content(&$a) { '$f_tsel' => timesel('finish',$fhour,$fminute), '$a_text' => t('Adjust for viewer timezone'), '$a_checked' => $a_checked, - '$d_text' => t('Description:') . ' <span class="required">*</span>', + '$d_text' => t('Description:'), '$d_orig' => $d_orig, '$l_text' => t('Location:'), '$l_orig' => $l_orig, - '$t_text' => t('Title:'), + '$t_text' => t('Title:') . ' <span class="required" title="' . t('Required') . '">*</span>', '$t_orig' => $t_orig, '$sh_text' => t('Share this event'), '$sh_checked' => $sh_checked, |