use Friendica\Content\Nav;
use Friendica\Content\Text\Markdown;
use Friendica\Core\L10n;
+use Friendica\DI;
use Friendica\Network\HTTPException;
use Friendica\Util\Strings;
$text = '';
$filename = '';
- $a = self::getApp();
- $config = $a->getConfig();
+ $a = DI::app();
+ $config = DI::config();
$lang = $config->get('system', 'language');
// @TODO: Replace with parameter from router
$path .= '/';
}
- $path .= $a->getArgumentValue($x);
+ $path .= DI::args()->get($x);
}
$title = basename($path);
$filename = $path;