cleanup namespace usages for L10n

This commit is contained in:
nupplaPhil 2020-01-18 22:07:07 +01:00
parent 0e6a675cb5
commit d6efc90194
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
170 changed files with 26 additions and 205 deletions

View file

@ -6,7 +6,6 @@
*/
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;
require_once("mod/notes.php");
@ -33,7 +32,7 @@ function update_notes_content(App $a) {
$text = notes_content($a, $profile_uid);
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";