X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=b8f3d8f498e64503c4df7f7eba65f12e459f2253;hb=589b7e718da0a1eb5f9f6e86e091307c399e0df6;hp=405933251056f6f93a1e743acde622ff9bfb813f;hpb=895b3abf320a28ecf0f797f4f4900e6baf429308;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 4059332510..b8f3d8f498 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -5,8 +5,7 @@ */ use Friendica\App; -use Friendica\Core\L10n; -use Friendica\Core\PConfig; +use Friendica\DI; require_once "mod/display.php"; @@ -20,8 +19,8 @@ function update_display_content(App $a) $text = display_content($a, true, $profile_uid); - if (PConfig::get(local_user(), "system", "bandwidth_saver")) { - $replace = "
" . L10n::t("[Embedded content - reload page to view]") . "
"; + if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) { + $replace = "
" . DI::l10n()->t("[Embedded content - reload page to view]") . "
"; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";