X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseApi.php;h=75791e0eaede651156833081163ad606495aa6db;hb=3f523a88b0af4e2a73b29917da33d221abef9647;hp=543293872db877db068378a984f5098fb82cc9c8;hpb=42775d53b2c5177cae2e0e1dacb0a32f92e4a83b;p=friendica.git diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 543293872d..75791e0eae 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; @@ -23,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'; } }