diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index fc671b76436..44f99a8a8d9 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -455,7 +455,7 @@ if ($action == 'create') print ''.$langs->trans("Title").''; // Full day - print ''.$langs->trans("EventOnFullDay").''; + print ''.$langs->trans("EventOnFullDay").''; // Date start $datep=$actioncomm->datep; @@ -699,7 +699,7 @@ if ($id) print ''.$langs->trans("Title").''; // Full day event - print ''.$langs->trans("EventOnFullDay").'fulldayevent?' checked="checked"':'').'>'; + print ''.$langs->trans("EventOnFullDay").'fulldayevent?' checked="checked"':'').'>'; // Date start print ''.$langs->trans("DateActionStart").''; diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 3bcac38aaba..75d25216b81 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -746,11 +746,13 @@ if (! is_array($theme_datacolor)) $theme_datacolor=array(array(120,130,150), arr if (empty($action) || $action == 'show_month') // View by month { $newparam=$param; // newparam is for birthday links + $newparam=preg_replace('/showbirthday=/i','showbirthday_=',$newparam); // To avoid replacement when replace day= is done $newparam=preg_replace('/action=show_month&?/i','',$newparam); $newparam=preg_replace('/action=show_week&?/i','',$newparam); - $newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam); - $newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam); + $newparam=preg_replace('/day=[0-9]+&?/i','',$newparam); + $newparam=preg_replace('/month=[0-9]+&?/i','',$newparam); $newparam=preg_replace('/year=[0-9]+&?/i','',$newparam); + $newparam=preg_replace('/showbirthday_=/i','showbirthday=',$newparam); // Restore correct parameter echo ''; echo ' '; $i=0; @@ -812,11 +814,13 @@ if (empty($action) || $action == 'show_month') // View by month elseif ($action == 'show_week') // View by week { $newparam=$param; // newparam is for birthday links + $newparam=preg_replace('/showbirthday=/i','showbirthday_=',$newparam); // To avoid replacement when replace day= is done $newparam=preg_replace('/action=show_month&?/i','',$newparam); $newparam=preg_replace('/action=show_week&?/i','',$newparam); - $newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam); - $newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam); + $newparam=preg_replace('/day=[0-9]+&?/i','',$newparam); + $newparam=preg_replace('/month=[0-9]+&?/i','',$newparam); $newparam=preg_replace('/year=[0-9]+&?/i','',$newparam); + $newparam=preg_replace('/showbirthday_=/i','showbirthday=',$newparam); // Restore correct parameter echo '
'; echo ' '; $i=0; @@ -868,9 +872,6 @@ else // View by day $newparam=$param; // newparam is for birthday links $newparam=preg_replace('/action=show_month&?/i','',$newparam); $newparam=preg_replace('/action=show_week&?/i','',$newparam); - $newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam); - $newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam); - $newparam=preg_replace('/year=[0-9]+&?/i','',$newparam); // Code to show just one day $style='cal_current_month'; $today=0;