mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
avoid pass by reference error on 5.4
This commit is contained in:
parent
a355a8413c
commit
e4542827c8
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ class AssetDispatcher extends DispatcherFilter {
|
|||
return $response;
|
||||
}
|
||||
|
||||
$ext = array_pop(explode('.', $url));
|
||||
$pathSegments = explode('.', $url);
|
||||
$ext = array_pop($pathSegments);
|
||||
$this->_deliverAsset($response, $assetFile, $ext);
|
||||
return $response;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue