From: Michael Vogel Date: Wed, 4 Jul 2012 19:56:17 +0000 (+0200) Subject: Only some reformatting of the code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc74af9d09d2e345e6a87b0b0ebcf7612457f234;hp=bf2d3a835690697eafc5f6ec8fda9a0dcb34a42f;p=friendica-addons.git Only some reformatting of the code. --- diff --git a/privacy_image_cache/privacy_image_cache.php b/privacy_image_cache/privacy_image_cache.php index b7236d09..49456ce8 100644 --- a/privacy_image_cache/privacy_image_cache.php +++ b/privacy_image_cache/privacy_image_cache.php @@ -111,8 +111,10 @@ function privacy_image_cache_is_local_image($url) { */ function privacy_image_cache_img_cb($matches) { // following line changed per bug #431 - if (privacy_image_cache_is_local_image($matches[2])) return $matches[1] . $matches[2] . $matches[3]; - return $matches[1] . get_app()->get_baseurl() . "/privacy_image_cache/?url=" . escape_tags(addslashes(rawurlencode($matches[2]))) . $matches[3]; + if (privacy_image_cache_is_local_image($matches[2])) + return $matches[1] . $matches[2] . $matches[3]; + + return $matches[1] . get_app()->get_baseurl() . "/privacy_image_cache/?url=" . escape_tags(addslashes(rawurlencode($matches[2]))) . $matches[3]; } /**