Move Config::get() to DI::config()->get()

This commit is contained in:
nupplaPhil 2020-01-19 21:21:13 +01:00
parent 5d294e8be8
commit 6c36fd9e01
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
126 changed files with 581 additions and 596 deletions

View file

@ -248,7 +248,7 @@ class OEmbed
public static function BBCode2HTML($text)
{
$stopoembed = Config::get("system", "no_oembed");
$stopoembed = DI::config()->get("system", "no_oembed");
if ($stopoembed == true) {
return preg_replace("/\[embed\](.+?)\[\/embed\]/is", "<!-- oembed $1 --><i>" . DI::l10n()->t('Embedding disabled') . " : $1</i><!-- /oembed $1 -->", $text);
}
@ -302,7 +302,7 @@ class OEmbed
*/
public static function isAllowedURL($url)
{
if (!Config::get('system', 'no_oembed_rich_content')) {
if (!DI::config()->get('system', 'no_oembed_rich_content')) {
return true;
}
@ -311,7 +311,7 @@ class OEmbed
return false;
}
$str_allowed = Config::get('system', 'allowed_oembed', '');
$str_allowed = DI::config()->get('system', 'allowed_oembed', '');
if (empty($str_allowed)) {
return false;
}