undefined fn
This commit is contained in:
parent
1830ecc9ba
commit
0ecba60503
|
@ -215,10 +215,10 @@ function parse_url_content(&$a) {
|
||||||
|
|
||||||
$i = fetch_url($image);
|
$i = fetch_url($image);
|
||||||
if($i) {
|
if($i) {
|
||||||
|
require_once('include/Photo.php');
|
||||||
// guess mimetype from headers or filename
|
// guess mimetype from headers or filename
|
||||||
$type = guess_image_type($image,true);
|
$type = guess_image_type($image,true);
|
||||||
|
|
||||||
require_once('include/Photo.php');
|
|
||||||
$ph = new Photo($i, $type);
|
$ph = new Photo($i, $type);
|
||||||
if($ph->is_valid()) {
|
if($ph->is_valid()) {
|
||||||
if($ph->getWidth() > 300 || $ph->getHeight() > 300) {
|
if($ph->getWidth() > 300 || $ph->getHeight() > 300) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user