cleanup namespace usages for L10n

This commit is contained in:
nupplaPhil
2020-01-18 22:07:07 +01:00
parent 0e6a675cb5
commit d6efc90194
170 changed files with 26 additions and 205 deletions

View File

@@ -3,7 +3,6 @@
// See update_profile.php for documentation
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Module\Contact;
@@ -20,7 +19,7 @@ function update_contact_content(App $a)
}
if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".DI::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";