Skip to content

Commit

Permalink
Renamed $stamp to $timestamp for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLuckers committed Dec 12, 2017
1 parent ba47e93 commit 3bc8caa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/View/Helper/UrlHelper.php
Expand Up @@ -218,15 +218,15 @@ protected function _encodeUrl($url)
* a timestamp will be added.
*
* @param string $path The file path to timestamp, the path must be inside WWW_ROOT
* @param bool|string $stamp If set will overrule the value of `Asset.timestamp` in Configure.
* @param bool|string $timestamp If set will overrule the value of `Asset.timestamp` in Configure.
* @return string Path with a timestamp added, or not.
*/
public function assetTimestamp($path, $stamp = null)
public function assetTimestamp($path, $timestamp = null)
{
if (is_null($stamp)) {
$stamp = Configure::read('Asset.timestamp');
if (is_null($timestamp)) {
$timestamp = Configure::read('Asset.timestamp');
}
$timestampEnabled = $stamp === 'force' || ($stamp === true && Configure::read('debug'));
$timestampEnabled = $timestamp === 'force' || ($timestamp === true && Configure::read('debug'));
if ($timestampEnabled && strpos($path, '?') === false) {
$filepath = preg_replace(
'/^' . preg_quote($this->request->getAttribute('webroot'), '/') . '/',
Expand Down

0 comments on commit 3bc8caa

Please sign in to comment.