]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_network.php
Merge pull request #8277 from MrPetovan/task/8251-use-about-for-pdesc
[friendica.git] / mod / update_network.php
index 3a4922768025016a2d506831d96f2d7a52fc2123..d6b77aedbb52962a22c9b27801180122b4cce39a 100644 (file)
@@ -1,12 +1,26 @@
 <?php
 /**
- * @file mod/update_network
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  * See update_profile.php for documentation
  */
 
 use Friendica\App;
-use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
 use Friendica\DI;
 
 require_once "mod/network.php";
@@ -31,7 +45,7 @@ function update_network_content(App $a)
        }
 
        if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
-               $replace = "<br />" . 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";