X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrost%2Ftheme.php;h=b09153876d67c09285609c27910d02ea35e33e24;hb=cbd3edbc05999310b7f3cca5aa3d0124b26f7c6e;hp=1f2c70c8bc7171ce7d7f396a571d5031aee49c0d;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/view/theme/frost/theme.php b/view/theme/frost/theme.php index 1f2c70c8bc..b09153876d 100644 --- a/view/theme/frost/theme.php +++ b/view/theme/frost/theme.php @@ -9,6 +9,8 @@ * Maintainer: Zach P */ +use Friendica\App; + function frost_init(App $a) { $a->videowidth = 400; $a->videoheight = 330; @@ -49,12 +51,12 @@ function frost_item_photo_links(App $a, &$body_info) { $occurence = 1; $p = bb_find_open_close($body_info['html'], ""); - while ($p !== false && ($occurence++ < 500)) { + while($p !== false && ($occurence++ < 500)) { $link = substr($body_info['html'], $p['start'], $p['end'] - $p['start']); $matches = array(); preg_match("/\/photos\/[\w]+\/image\/([\w]+)/", $link, $matches); - if ($matches) { + if($matches) { // Replace the link for the photo's page with a direct link to the photo itself $newlink = str_replace($matches[0], "/photo/{$matches[1]}", $link);