Move "getUserAgent()" to "HTTPRequest" class

This commit is contained in:
nupplaPhil 2020-03-04 22:26:38 +01:00 committed by Hypolite Petovan
parent cebdcb6599
commit 57587efe58
4 changed files with 26 additions and 27 deletions

View file

@ -240,22 +240,6 @@ class App
}
}
/**
* Returns the current UserAgent as a String
*
* @return string the UserAgent as a String
* @throws HTTPException\InternalServerErrorException
*/
public function getUserAgent()
{
return
FRIENDICA_PLATFORM . " '" .
FRIENDICA_CODENAME . "' " .
FRIENDICA_VERSION . '-' .
DB_UPDATE_VERSION . '; ' .
$this->baseURL->get();
}
/**
* Returns the current theme name. May be overriden by the mobile theme name.
*