diff options
author | friendica <info@friendica.com> | 2013-04-25 20:01:24 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-04-25 20:01:24 -0700 |
commit | 72e83f69bc3afe3646b423a19f11c99d03e3b66a (patch) | |
tree | 130a7a1d0a45f3116c5729e6d7913ffcabff0acf /mod/photo.php | |
parent | d3b5e678908864d889b916ad2f976c1af16ca360 (diff) | |
download | volse-hubzilla-72e83f69bc3afe3646b423a19f11c99d03e3b66a.tar.gz volse-hubzilla-72e83f69bc3afe3646b423a19f11c99d03e3b66a.tar.bz2 volse-hubzilla-72e83f69bc3afe3646b423a19f11c99d03e3b66a.zip |
photo driver abstraction
Diffstat (limited to 'mod/photo.php')
-rw-r--r-- | mod/photo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photo.php b/mod/photo.php index aff4dc895..43418e524 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -1,7 +1,7 @@ <?php require_once('include/security.php'); -require_once('include/Photo.php'); +require_once('include/photo/photo_driver.php'); function photo_init(&$a) { @@ -151,7 +151,7 @@ function photo_init(&$a) { } if(isset($res) && intval($res) && $res < 500) { - $ph = new Photo($data, $mimetype); + $ph = photo_factory($data, $mimetype); if($ph->is_valid()) { $ph->scaleImageSquare($res); $data = $ph->imageString(); |