mirror of
https://github.com/getgrav/grav.git
synced 2026-07-09 12:42:53 +02:00
Fix for timestamp on pipelined assets
This commit is contained in:
@@ -1373,13 +1373,17 @@ class Assets
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTimestamp()
|
||||
public function getTimestamp($include_join = true)
|
||||
{
|
||||
return $this->timestamp;
|
||||
if ($this->timestamp) {
|
||||
$timestamp = $include_join ? '?' . $this->timestamp : $this->timestamp;
|
||||
return $timestamp;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the full query string including any query params and timestamp
|
||||
*
|
||||
*
|
||||
* @param $asset
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user