Add batflat_dir() function

This commit is contained in:
Paweł Klockiewicz
2018-05-27 18:51:59 +02:00
parent a9fae7048b
commit 3989ccad9d

View File

@@ -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
*