Skip to content

Commit

Permalink
Drupal version 7.22, a maintenance release recommended for all sites: h…
Browse files Browse the repository at this point in the history
…ttp://drupal.org/drupal-7.22

This also includes some minor updates to Pantheon integration code.
  • Loading branch information
Josh Koenig committed Apr 4, 2013
1 parent 1961750 commit c78a636
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions includes/stream_wrappers.inc
Original file line number Diff line number Diff line change
@@ -692,21 +692,14 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface
}

$this->uri = $uri;

if (strpos($uri, 'public://') === 0 && function_exists('pantheon_stat')) {
$path = $this->getTarget($uri);
$stat = pantheon_stat($path);
$path = $this->getLocalPath();
// Suppress warnings if requested or if the file or directory does not
// exist. This is consistent with PHP's plain filesystem stream wrapper.
if ($flags & STREAM_URL_STAT_QUIET || !file_exists($path)) {
$stat = @stat($path);
}
else {
$path = $this->getLocalPath();
// Suppress warnings if requested or if the file or directory does not
// exist. This is consistent with PHP's plain filesystem stream wrapper.
if ($flags & STREAM_URL_STAT_QUIET || !file_exists($path)) {
$stat = @stat($path);
}
else {
$stat = stat($path);
}
$stat = stat($path);
}

if ($store_to_cache && $stat !== FALSE) {

0 comments on commit c78a636

Please sign in to comment.