From 0098f97c4ada561f64f9f7e38863b54c07ff8564 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 1 Mar 2019 13:09:40 +0100 Subject: [PATCH] Moving Model call outside Object Namespace --- src/Model/Photo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 0c8cd0c47a..61501bdac8 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -353,6 +353,9 @@ class Photo extends BaseObject /** * @brief This function is used by the fromgplus addon + * + * Stores a photo based on image data or an URL + * * @param integer $uid user id * @param string $imagedata optional, default empty * @param string $url optional, default empty @@ -360,7 +363,7 @@ class Photo extends BaseObject * @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function storePhoto($uid, $imagedata = "", $url = "") + public static function storeByData($uid, $imagedata = "", $url = "") { $a = self::getApp(); $logger = $a->getLogger();