Remove the use of app function

This commit is contained in:
Michael 2021-08-08 17:10:04 +00:00
parent e823a1bd05
commit 9ad7500146
5 changed files with 20 additions and 6 deletions

View file

@ -45,6 +45,7 @@ use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Model\Tag;
use Friendica\Model\User;
use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat;
@ -200,7 +201,9 @@ function advancedcontentfilter_content(App $a)
}
if (DI::args()->getArgc() > 1 && DI::args()->getArgv()[1] == 'help') {
$lang = $a->getUserValue('language');
$user = User::getById(local_user());
$lang = $user['language'];
$default_dir = 'addon/advancedcontentfilter/doc/';
$help_file = 'advancedcontentfilter.md';