mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:50:15 +00:00
cleanup namespace usages for L10n
This commit is contained in:
parent
0e6a675cb5
commit
d6efc90194
170 changed files with 26 additions and 205 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue