Skip to content
This repository
Browse code

avoid pass by reference error on 5.4

  • Loading branch information...
commit e4542827c85c6558833bb8ce1c8b63ef2cd12c76 1 parent a355a84
ceeram authored September 24, 2012
3  lib/Cake/Routing/Filter/AssetDispatcher.php
@@ -64,7 +64,8 @@ public function beforeDispatch($event) {
64 64
 			return $response;
65 65
 		}
66 66
 
67  
-		$ext = array_pop(explode('.', $url));
  67
+		$pathSegments = explode('.', $url);
  68
+		$ext = array_pop($pathSegments);
68 69
 		$this->_deliverAsset($response, $assetFile, $ext);
69 70
 		return $response;
70 71
 	}

0 notes on commit e454282

Please sign in to comment.
Something went wrong with that request. Please try again.