X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=390a6ef9c2ba852b8f7d213af2e496272f64b977;hb=5bc4d24e709db5ae14915f8a13ffc06adc85dd4f;hp=f36e770da189ccddde55ef7c70569f8222c71165;hpb=244f440d97436e92836a95b207fb6737c12c9d0d;p=friendica.git diff --git a/boot.php b/boot.php index f36e770da1..390a6ef9c2 100644 --- a/boot.php +++ b/boot.php @@ -446,17 +446,6 @@ function curPageURL() return $pageURL; } -function get_server() -{ - $server = Config::get("system", "directory"); - - if ($server == "") { - $server = "https://dir.friendica.social"; - } - - return $server; -} - function get_temppath() { $temppath = Config::get("system", "temppath"); @@ -660,22 +649,3 @@ function validate_include(&$file) // Simply return flag return $valid; } - -/** - * PHP 5 compatible dirname() with count parameter - * - * @see http://php.net/manual/en/function.dirname.php#113193 - * - * @deprecated with PHP 7 - * @param string $path - * @param int $levels - * @return string - */ -function rdirname($path, $levels = 1) -{ - if ($levels > 1) { - return dirname(rdirname($path, --$levels)); - } else { - return dirname($path); - } -}