Browse files

avoid pass by reference error on 5.4

  • Loading branch information...
1 parent a355a84 commit e4542827c85c6558833bb8ce1c8b63ef2cd12c76 @ceeram ceeram committed Sep 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Routing/Filter/AssetDispatcher.php
View
3 lib/Cake/Routing/Filter/AssetDispatcher.php
@@ -64,7 +64,8 @@ public function beforeDispatch($event) {
return $response;
}
- $ext = array_pop(explode('.', $url));
+ $pathSegments = explode('.', $url);
+ $ext = array_pop($pathSegments);
$this->_deliverAsset($response, $assetFile, $ext);
return $response;
}

0 comments on commit e454282

Please sign in to comment.