mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Remove unused param in datetimesel()
This commit is contained in:
parent
3b4625ebdd
commit
659d637b5a
3 changed files with 10 additions and 26 deletions
|
@ -180,10 +180,6 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
|
|||
function dob($dob) {
|
||||
list($year,$month,$day) = sscanf($dob,'%4d-%2d-%2d');
|
||||
|
||||
$f = Config::get('system', 'birthday_input_format');
|
||||
if (! $f) {
|
||||
$f = 'ymd';
|
||||
}
|
||||
if ($dob <= '0001-01-01') {
|
||||
$value = '';
|
||||
} else {
|
||||
|
@ -228,15 +224,14 @@ function dob($dob) {
|
|||
*
|
||||
* @return string Parsed HTML output.
|
||||
*/
|
||||
function datesel($format, $min, $max, $default, $id = 'datepicker') {
|
||||
return datetimesel($format, $min, $max, $default, '', $id, true, false, '', '');
|
||||
function datesel($min, $max, $default, $id = 'datepicker')
|
||||
{
|
||||
return datetimesel($min, $max, $default, '', $id, true, false, '', '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns a time selector
|
||||
*
|
||||
* @param string $format
|
||||
* Format string, e.g. 'ymd' or 'mdy'. Not currently supported
|
||||
* @param $h
|
||||
* Already selected hour
|
||||
* @param $m
|
||||
|
@ -246,15 +241,14 @@ function datesel($format, $min, $max, $default, $id = 'datepicker') {
|
|||
*
|
||||
* @return string Parsed HTML output.
|
||||
*/
|
||||
function timesel($format, $h, $m, $id = 'timepicker') {
|
||||
return datetimesel($format, new DateTime(), new DateTime(), new DateTime("$h:$m"), '', $id, false, true);
|
||||
function timesel($h, $m, $id = 'timepicker')
|
||||
{
|
||||
return datetimesel(new DateTime(), new DateTime(), new DateTime("$h:$m"), '', $id, false, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns a datetime selector.
|
||||
*
|
||||
* @param string $format
|
||||
* format string, e.g. 'ymd' or 'mdy'. Not currently supported
|
||||
* @param string $min
|
||||
* unix timestamp of minimum date
|
||||
* @param string $max
|
||||
|
@ -278,8 +272,8 @@ function timesel($format, $h, $m, $id = 'timepicker') {
|
|||
* @todo Once browser support is better this could probably be replaced with
|
||||
* native HTML5 date picker.
|
||||
*/
|
||||
function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
|
||||
|
||||
function datetimesel($min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false)
|
||||
{
|
||||
// First day of the week (0 = Sunday)
|
||||
$firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue