Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
@@ -21,7 +21,7 @@ function update_display_content(App $a)
|
||||
$text = display_content($a, true, $profile_uid);
|
||||
|
||||
if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
|
||||
$replace = "<br />" . L10n::t("[Embedded content - reload page to view]") . "<br />";
|
||||
$replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
|
||||
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
|
||||
$text = preg_replace($pattern, $replace, $text);
|
||||
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";
|
||||
|
||||
Reference in New Issue
Block a user