public static function content(array $parameters = [])
{
$app = DI::app();
- $config = $app->getConfig();
+ $config = DI::config();
if (($config->get('system', 'block_public') && !Session::isAuthenticated()) ||
($config->get('system', 'block_local_dir') && !Session::isAuthenticated())) {
}
if (local_user()) {
- $app->page['aside'] .= Widget::findPeople();
- $app->page['aside'] .= Widget::follow();
+ DI::page()['aside'] .= Widget::findPeople();
+ DI::page()['aside'] .= Widget::follow();
}
$output = '';
$gDirPath = Profile::zrl($dirURL, true);
}
- $pager = new Pager($app->query_string, 60);
+ $pager = new Pager(DI::args()->getQueryString(), 60);
$profiles = Profile::searchProfiles($pager->getStart(), $pager->getItemsPerPage(), $search);