]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Replace stylesheet names
[friendica.git] / include / items.php
index a78588e9f859532d018b9008825db9c1f923c765..2230c93c77209a3d87460895c4b61be9bacca760 100644 (file)
@@ -3,9 +3,7 @@
  * @file include/items.php
  */
 
-use Friendica\Core\Config;
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
@@ -74,7 +72,7 @@ function add_page_info_data(array $data, $no_photos = false)
                $preview = str_replace(["[", "]"], ["[", "]"], htmlentities($data["images"][0]["src"], ENT_QUOTES, 'UTF-8', false));
                // if the preview picture is larger than 500 pixels then show it in a larger mode
                // But only, if the picture isn't higher than large (To prevent huge posts)
-               if (!Config::get('system', 'always_show_preview') && ($data["images"][0]["width"] >= 500)
+               if (!DI::config()->get('system', 'always_show_preview') && ($data["images"][0]["width"] >= 500)
                        && ($data["images"][0]["width"] >= $data["images"][0]["height"])) {
                        $text .= " image='".$preview."'";
                } else {