X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=222011f6b76d7dc0ad2bb440c328437daf61bb5e;hb=21783f61b48727b1bc06d28f005e6a8f58b39fb8;hp=c6ef3aed9023441d06ad08619a9935f5dc54e982;hpb=3a9db3f6373330902a5efe42eb8790c240fba580;p=friendica.git diff --git a/boot.php b/boot.php index c6ef3aed90..222011f6b7 100644 --- a/boot.php +++ b/boot.php @@ -39,7 +39,7 @@ require_once 'include/text.php'; define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'The Tazmans Flax-lily'); -define('FRIENDICA_VERSION', '2018.12-dev'); +define('FRIENDICA_VERSION', '2018.12-rc'); define('DFRN_PROTOCOL_VERSION', '2.23'); define('NEW_UPDATE_ROUTINE_VERSION', 1170); @@ -854,3 +854,22 @@ 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); + } +} \ No newline at end of file