Skip to content

Commit

Permalink
avoid pass by reference error on 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Sep 24, 2012
1 parent a355a84 commit e454282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Routing/Filter/AssetDispatcher.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit e454282

Please sign in to comment.