forked from friendica/friendica-addons
Replace BaseObject class with DI::* calls
This commit is contained in:
parent
5d4d175bf9
commit
34ba7f441d
|
@ -7,14 +7,13 @@
|
||||||
* Status: Unsupported
|
* Status: Unsupported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\BaseObject;
|
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\ACLFormatter;
|
use Friendica\DI;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
function remote_permissions_install() {
|
function remote_permissions_install() {
|
||||||
|
@ -125,8 +124,7 @@ function remote_permissions_content($a, $item_copy) {
|
||||||
|
|
||||||
$item = $r[0];
|
$item = $r[0];
|
||||||
|
|
||||||
/** @var ACLFormatter $aclFormatter */
|
$aclFormatter = DI::aclFormatter();
|
||||||
$aclFormatter = BaseObject::getClass(ACLFormatter::class);
|
|
||||||
|
|
||||||
$allowed_users = $aclFormatter->expand($item['allow_cid']);
|
$allowed_users = $aclFormatter->expand($item['allow_cid']);
|
||||||
$allowed_groups = $aclFormatter->expand($item['allow_gid']);
|
$allowed_groups = $aclFormatter->expand($item['allow_gid']);
|
||||||
|
|
Loading…
Reference in a new issue