Skip to content

Commit

Permalink
Refs #3548, fixes the request client to use correct method on itself,…
Browse files Browse the repository at this point in the history
… rather than Cache
  • Loading branch information
samsoir committed Jan 12, 2011
1 parent 6a00a46 commit 8bb1ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/kohana/request/client/external.php
Expand Up @@ -71,7 +71,7 @@ protected static function _parse_headers($remote, $header)
public function execute(Request $request)
{
// Check for cache existance
if ($this->_cache instanceof Cache AND ($response = $this->_cache->cache_response($request)) instanceof Response)
if ($this->_cache instanceof Cache AND ($response = $this->cache_response($request)) instanceof Response)
return $response;

if (Kohana::$profiling)
Expand Down
2 changes: 1 addition & 1 deletion classes/kohana/request/client/internal.php
Expand Up @@ -42,7 +42,7 @@ class Kohana_Request_Client_Internal extends Request_Client {
public function execute(Request $request)
{
// Check for cache existance
if ($this->_cache instanceof Cache AND ($response = $this->_cache->cache_response($request)) instanceof Response)
if ($this->_cache instanceof Cache AND ($response = $this->cache_response($request)) instanceof Response)
return $response;

// Create the class prefix
Expand Down

0 comments on commit 8bb1ea4

Please sign in to comment.