mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
cleanup namespace usages for L10n
This commit is contained in:
parent
0e6a675cb5
commit
d6efc90194
170 changed files with 26 additions and 205 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue