X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fupdate_display.php;h=bfd8cdab88897281de380b1b48a153db98169329;hb=9e9429b56d85626259e89d6373e59f9307be9c78;hp=4b6d26cb7f4fb9303cf8ff3cee72be1caad1d70a;hpb=e3584daef9c7801bce8d504152c5ccbd3ab492b4;p=friendica.git
diff --git a/mod/update_display.php b/mod/update_display.php
index 4b6d26cb7f..bfd8cdab88 100644
--- a/mod/update_display.php
+++ b/mod/update_display.php
@@ -7,6 +7,7 @@
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
require_once "mod/display.php";
@@ -20,7 +21,7 @@ function update_display_content(App $a)
$text = display_content($a, true, $profile_uid);
- if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
+ if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "
" . L10n::t("[Embedded content - reload page to view]") . "
";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
@@ -35,5 +36,5 @@ function update_display_content(App $a)
echo str_replace("\t", " ", $text);
echo "";
echo "