mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 01:48:59 +02:00
bugfix for timestamp logic
This commit is contained in:
@@ -269,7 +269,12 @@ class Assets extends PropertyObject
|
||||
|
||||
// Add timestamp
|
||||
$timestamp_override = $options['timestamp'] ?? true;
|
||||
$options['timestamp'] = $this->timestamp && filter_var($timestamp_override, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if (filter_var($timestamp_override, FILTER_VALIDATE_BOOLEAN)) {
|
||||
$options['timestamp'] = $this->timestamp;
|
||||
} else {
|
||||
$options['timestamp'] = null;
|
||||
}
|
||||
|
||||
// Set order
|
||||
$group = $options['group'] ?? 'head';
|
||||
|
||||
Reference in New Issue
Block a user