]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/System.php
Merge pull request #8070 from nupplaphil/bug/8069-logout
[friendica.git] / src / Core / System.php
index 367e055c9309fe28a43b2cd1544d0b3b7505201f..5b882efac85d35b47874b97d4196aed8ee28c82f 100644 (file)
@@ -20,30 +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.
-        *
-        * @param string $orig_url The url to be cleaned
-        *
-        * @return string The cleaned url
-        * @throws \Exception
-        */
-       public static function removedBaseUrl(string $orig_url)
-       {
-               return DI::app()->removeBaseURL($orig_url);
-       }
-
        /**
         * @brief Returns a string with a callstack. Can be used for logging.
         * @param integer $depth optional, default 4
@@ -182,7 +158,7 @@ class System
                if (is_bool($prefix) && !$prefix) {
                        $prefix = '';
                } elseif (empty($prefix)) {
-                       $prefix = hash('crc32', DI::app()->getHostName());
+                       $prefix = hash('crc32', DI::baseUrl()->getHostname());
                }
 
                while (strlen($prefix) < ($size - 13)) {
@@ -307,14 +283,12 @@ class System
 
        /// @todo Move the following functions from boot.php
        /*
-       function killme()
        function local_user()
        function public_contact()
        function remote_user()
        function notice($s)
        function info($s)
        function is_site_admin()
-       function get_server()
        function get_temppath()
        function get_cachefile($file, $writemode = true)
        function get_itemcachepath()