Procházet zdrojové kódy

Fixed wrong variable name in Esi.

Marc Weistroff před 14 roky
rodič
revize
15d840060b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Symfony/Component/HttpKernel/Cache/Esi.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Cache/Esi.php

@@ -176,7 +176,7 @@ class Esi
             $response = $cache->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
 
             if (200 != $response->getStatusCode()) {
-                throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %s).', $request->getUri(), $response->getStatusCode()));
+                throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %s).', $subRequest->getUri(), $response->getStatusCode()));
             }
 
             return $response->getContent();