*/
namespace Friendica\Core;
-use Friendica\App;
+use Friendica\BaseObject;
/**
* @file include/Core/System.php
/**
* @brief System methods
*/
-class System
+class System extends BaseObject
{
- private static $a;
-
- /**
- * @brief Initializes the static class variable
- * @return void
- */
- private static function init()
- {
- global $a;
-
- if (!is_object(self::$a)) {
- self::$a = $a;
- }
- }
-
/**
* @brief Retrieves the Friendica instance base URL
*
*/
public static function baseUrl($ssl = false)
{
- self::init();
- return self::$a->get_baseurl($ssl);
+ return self::getApp()->get_baseurl($ssl);
}
/**
*/
public static function removedBaseUrl($orig_url)
{
- self::init();
- return self::$a->remove_baseurl($orig_url);
+ return self::getApp()->remove_baseurl($orig_url);
}
/**