diff --git a/inc/core/lib/functions.php b/inc/core/lib/functions.php index 12b2af3..26aaa8b 100644 --- a/inc/core/lib/functions.php +++ b/inc/core/lib/functions.php @@ -261,6 +261,15 @@ function domain($with_protocol = true) return $url['host']; } +/** + * Batflat dir name + * + * @return string + */ +function batflat_dir() { + return basename(str_replace(ADMIN, null, getcwd())); +} + /** * toggle empty variable *