Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Fixing a minor bug where the feed reader wasn't dropping the .gitigno…
Browse files Browse the repository at this point in the history
…re file into the storage folder
  • Loading branch information
awjudd committed Mar 18, 2014
1 parent e558010 commit 94be0ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Awjudd/FeedReader/FeedReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ private function setup_cache_directory($configuration)
// Grab the cache location
$cache_location = storage_path($this->read_config($configuration, 'cache.location', 'rss-feeds'));

// Is the last character a slash?
if(substr($cache_location, -1) != DIRECTORY_SEPARATOR)
{
// Add in the slash at the end
$cache_location .= DIRECTORY_SEPARATOR;
}

// Check if the folder is available
if(!file_exists($cache_location))
{
Expand Down

0 comments on commit 94be0ea

Please sign in to comment.