mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Use Arguments->getCommand() where it makes more sense than getQueryString()
- Remove a couple of intermediary query string variables
This commit is contained in:
parent
e23f3a645a
commit
bbefc61a0c
4 changed files with 10 additions and 17 deletions
|
@ -42,13 +42,13 @@ class BaseApi extends BaseModule
|
|||
{
|
||||
$arguments = DI::args();
|
||||
|
||||
if (substr($arguments->getQueryString(), -4) === '.xml') {
|
||||
if (substr($arguments->getCommand(), -4) === '.xml') {
|
||||
self::$format = 'xml';
|
||||
}
|
||||
if (substr($arguments->getQueryString(), -4) === '.rss') {
|
||||
if (substr($arguments->getCommand(), -4) === '.rss') {
|
||||
self::$format = 'rss';
|
||||
}
|
||||
if (substr($arguments->getQueryString(), -4) === '.atom') {
|
||||
if (substr($arguments->getCommand(), -4) === '.atom') {
|
||||
self::$format = 'atom';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue