File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,15 @@ protected function _encodeUrl($url)
218
218
* a timestamp will be added.
219
219
*
220
220
* @param string $path The file path to timestamp, the path must be inside WWW_ROOT
221
- * @param bool|string $stamp If set will overrule the value of `Asset.timestamp` in Configure.
221
+ * @param bool|string $timestamp If set will overrule the value of `Asset.timestamp` in Configure.
222
222
* @return string Path with a timestamp added, or not.
223
223
*/
224
- public function assetTimestamp ($ path , $ stamp = null )
224
+ public function assetTimestamp ($ path , $ timestamp = null )
225
225
{
226
- if (is_null ($ stamp )) {
227
- $ stamp = Configure::read ('Asset.timestamp ' );
226
+ if (is_null ($ timestamp )) {
227
+ $ timestamp = Configure::read ('Asset.timestamp ' );
228
228
}
229
- $ timestampEnabled = $ stamp === 'force ' || ($ stamp === true && Configure::read ('debug ' ));
229
+ $ timestampEnabled = $ timestamp === 'force ' || ($ timestamp === true && Configure::read ('debug ' ));
230
230
if ($ timestampEnabled && strpos ($ path , '? ' ) === false ) {
231
231
$ filepath = preg_replace (
232
232
'/^ ' . preg_quote ($ this ->request ->getAttribute ('webroot ' ), '/ ' ) . '/ ' ,
You can’t perform that action at this time.
0 commit comments