Replace BaseObject class with DI::* calls

pull/927/head
nupplaPhil 2019-12-15 23:28:00 +01:00
parent 5d4d175bf9
commit 34ba7f441d
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 4 deletions

View File

@ -7,14 +7,13 @@
* Status: Unsupported
*/
use Friendica\BaseObject;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Util\ACLFormatter;
use Friendica\DI;
use Friendica\Util\Strings;
function remote_permissions_install() {
@ -125,8 +124,7 @@ function remote_permissions_content($a, $item_copy) {
$item = $r[0];
/** @var ACLFormatter $aclFormatter */
$aclFormatter = BaseObject::getClass(ACLFormatter::class);
$aclFormatter = DI::aclFormatter();
$allowed_users = $aclFormatter->expand($item['allow_cid']);
$allowed_groups = $aclFormatter->expand($item['allow_gid']);