Move PConfig::get() to DI::pConfig()->get()

This commit is contained in:
nupplaPhil
2020-01-18 16:50:57 +01:00
parent 6e2880c679
commit 9e9429b56d
61 changed files with 190 additions and 179 deletions

View File

@@ -4,7 +4,7 @@
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Module\Contact;
function update_contact_content(App $a)
@@ -19,7 +19,7 @@ function update_contact_content(App $a)
$text = '';
}
if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".L10n::t("[Embedded content - reload page to view]")."<br />";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);