mirror of
https://github.com/friendica/friendica
synced 2025-04-20 14:30:11 +00:00
Replace BaseObject class with DI::* calls
This commit is contained in:
parent
1de3f186d7
commit
388b963714
98 changed files with 321 additions and 440 deletions
|
@ -23,15 +23,15 @@ class Api extends BaseModule
|
|||
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
$Arguments = self::getClass(Arguments::class);
|
||||
$arguments = DI::args();
|
||||
|
||||
if (substr($Arguments->getQueryString(), -4) === '.xml') {
|
||||
if (substr($arguments->getQueryString(), -4) === '.xml') {
|
||||
self::$format = 'xml';
|
||||
}
|
||||
if (substr($Arguments->getQueryString(), -4) === '.rss') {
|
||||
if (substr($arguments->getQueryString(), -4) === '.rss') {
|
||||
self::$format = 'rss';
|
||||
}
|
||||
if (substr($Arguments->getQueryString(), -4) === '.atom') {
|
||||
if (substr($arguments->getQueryString(), -4) === '.atom') {
|
||||
self::$format = 'atom';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue