Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
use Friendica\App;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\DI;
|
||||
|
||||
require_once "mod/display.php";
|
||||
|
||||
@@ -20,7 +21,7 @@ function update_display_content(App $a)
|
||||
|
||||
$text = display_content($a, true, $profile_uid);
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user