Merge pull request #1958 from fabrixxm/event_firstday
default value for firstDay in events page
This commit is contained in:
commit
c0d0298b0f
1 changed files with 2 additions and 1 deletions
|
@ -190,6 +190,7 @@ function events_content(&$a) {
|
||||||
|
|
||||||
// First day of the week (0 = Sunday)
|
// First day of the week (0 = Sunday)
|
||||||
$firstDay = get_pconfig(local_user(),'system','first_day_of_week');
|
$firstDay = get_pconfig(local_user(),'system','first_day_of_week');
|
||||||
|
if ($firstDay === false) $firstDay=0;
|
||||||
|
|
||||||
$i18n = array(
|
$i18n = array(
|
||||||
"firstDay" => $firstDay,
|
"firstDay" => $firstDay,
|
||||||
|
@ -289,7 +290,7 @@ function events_content(&$a) {
|
||||||
$m = intval($thismonth);
|
$m = intval($thismonth);
|
||||||
|
|
||||||
// Put some limits on dates. The PHP date functions don't seem to do so well before 1900.
|
// Put some limits on dates. The PHP date functions don't seem to do so well before 1900.
|
||||||
// An upper limit was chosen to keep search engines from exploring links millions of years in the future.
|
// An upper limit was chosen to keep search engines from exploring links millions of years in the future.
|
||||||
|
|
||||||
if($y < 1901)
|
if($y < 1901)
|
||||||
$y = 1900;
|
$y = 1900;
|
||||||
|
|
Loading…
Reference in a new issue