mirror of
https://github.com/friendica/friendica
synced 2025-05-09 15:44:10 +02:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
6e2880c679
commit
9e9429b56d
61 changed files with 190 additions and 179 deletions
|
@ -9,6 +9,7 @@ namespace Friendica\Model;
|
|||
use Friendica\Content\Text;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\DI;
|
||||
|
||||
class ItemContent
|
||||
{
|
||||
|
@ -158,7 +159,7 @@ class ItemContent
|
|||
$post['url'] = $item['plink'];
|
||||
} elseif (strpos($item['body'], '[share') !== false) {
|
||||
$post['url'] = $item['plink'];
|
||||
} elseif (PConfig::get($item['uid'], 'system', 'no_intelligent_shortening')) {
|
||||
} elseif (DI::pConfig()->get($item['uid'], 'system', 'no_intelligent_shortening')) {
|
||||
$post['url'] = $item['plink'];
|
||||
}
|
||||
$msg = Text\Plaintext::shorten($msg, $limit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue