mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
Add file upload type of extra vars
This commit is contained in:
parent
373c563469
commit
0a625662f7
5 changed files with 36 additions and 0 deletions
|
|
@ -349,6 +349,12 @@ class Value
|
|||
return escape($value, false);
|
||||
}
|
||||
|
||||
// Process the file upload type.
|
||||
if ($type === 'file')
|
||||
{
|
||||
return $value ? intval($value) : null;
|
||||
}
|
||||
|
||||
// Escape and return all other types.
|
||||
return escape($value, false);
|
||||
}
|
||||
|
|
@ -423,6 +429,8 @@ class Value
|
|||
return sprintf('%s-%s-%s', substr($value, 0, 4), substr($value, 4, 2), substr($value, 6, 2));
|
||||
case 'timezone':
|
||||
return DateTime::getTimezoneList()[$value] ?? '';
|
||||
case 'file':
|
||||
return $value;
|
||||
default:
|
||||
return $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue