Created
August 15, 2010 13:07
-
-
Save iainurquhart/525474 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find the following around line 127 of pi.imgsizer.php | |
// ------------------------------------- | |
// do fetch remote img and reset the src | |
// ------------------------------------- | |
if($remote && $img['url_src']){ | |
$img['src'] = $this->do_remote($img); | |
} | |
// immediately after that, enter the following | |
if((strrpos($img['src'], "/") == (strlen($img['src'])-1)) || $img['src'] == "."){ | |
$TMPL->log_item("imgsizer.Error: image source is blank"); | |
return $TMPL->no_results(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment