X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_profile.php;h=984fd7949cffbe1393d004fa6a7d4ab0a37204f9;hb=796056a6feaf305dd9fb7c97bb43cdbc75ad0641;hp=f293088a962c1896a10e26cf5844408fbf0d37d0;hpb=acb4630eed14175ef35f09e21609d6329f3f990c;p=friendica.git
diff --git a/mod/update_profile.php b/mod/update_profile.php
index f293088a96..984fd7949c 100644
--- a/mod/update_profile.php
+++ b/mod/update_profile.php
@@ -6,9 +6,10 @@
*/
use Friendica\App;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
-require_once("mod/profile.php");
+require_once 'mod/profile.php';
function update_profile_content(App $a) {
@@ -30,12 +31,8 @@ function update_profile_content(App $a) {
$text = profile_content($a, $profile_uid);
- $pattern = "/
]*) src=\"([^\"]*)\"/";
- $replace = "
".t("[Embedded content - reload page to view]")."
";
+ if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
+ $replace = "
".L10n::t("[Embedded content - reload page to view]")."
";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";