Move redundant System::baseUrl() to DI::baseUrl() calls
This commit is contained in:
@@ -20,17 +20,6 @@ use Friendica\Util\XML;
|
||||
*/
|
||||
class System
|
||||
{
|
||||
/**
|
||||
* @brief Retrieves the Friendica instance base URL
|
||||
*
|
||||
* @param bool $ssl Whether to append http or https under BaseURL::SSL_POLICY_SELFSIGN
|
||||
* @return string Friendica server base URL
|
||||
*/
|
||||
public static function baseUrl($ssl = false)
|
||||
{
|
||||
return DI::baseUrl()->get($ssl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Removes the baseurl from an url. This avoids some mixed content problems.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user