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

Commit

Permalink
Changed the location of the TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram Mittendorff committed Aug 8, 2016
1 parent 66ba189 commit 211fd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/InstaCraft_FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public function scrape($folderId=0, $url=null)
foreach ($userMedia->nodes as $key => $image) {
$instagramUrl = explode('?', $image->display_src)[0];
// if the file not exists in source
// TODO fix the extension .jpg
$fileFound = $this->fileExists($folderId, $image->id);
if (!$fileFound) {
$profileImages[$key]['display_src'] = $instagramUrl;
Expand All @@ -182,6 +181,7 @@ public function scrape($folderId=0, $url=null)
* @return boolean If it exists or not
*/
public function fileExists($folderId=0, $imageId='') {
// TODO fix the extension .jpg
return craft()->assets->findFile(array('folderId' => $folderId, 'filename' => $imageId.'.jpg'));
}

Expand Down

0 comments on commit 211fd4b

Please sign in to comment.