X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPhoto.php;h=a22fcf457f09cfc994b2460d9d92ac749764738b;hb=be49a3a2b53e6ed1d08a443f1d8646c84c24c930;hp=bcb5b20f951aa63d7f6f6fec2c2a349400aacfae;hpb=ffa44b8dc0b2ac0d65da245766cf0826e219d9a8;p=friendica.git diff --git a/src/Model/Photo.php b/src/Model/Photo.php index bcb5b20f95..a22fcf457f 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -41,7 +41,7 @@ use Friendica\Util\Proxy; use Friendica\Util\Strings; /** - * Class to handle photo dabatase table + * Class to handle photo database table */ class Photo { @@ -416,7 +416,7 @@ class Photo * @param string $allow_cid Permissions, allowed contacts. optional, default = "" * @param string $allow_gid Permissions, allowed groups. optional, default = "" * @param string $deny_cid Permissions, denied contacts.optional, default = "" - * @param string $deny_gid Permissions, denied greoup.optional, default = "" + * @param string $deny_gid Permissions, denied group.optional, default = "" * @param string $desc Photo caption. optional, default = "" * * @return boolean True on success @@ -918,7 +918,7 @@ class Photo */ public static function getResourceData(string $name): array { - $base = DI::baseUrl()->get(); + $base = DI::baseUrl(); $guid = str_replace([Strings::normaliseLink($base), '/photo/'], '', Strings::normaliseLink($name)); @@ -982,7 +982,7 @@ class Photo */ public static function isLocalPage(string $name): bool { - $base = DI::baseUrl()->get(); + $base = DI::baseUrl(); $guid = str_replace(Strings::normaliseLink($base), '', Strings::normaliseLink($name)); $guid = preg_replace("=/photos/.*/image/(.*)=ism", '$1', $guid);