mirror of
https://github.com/sruupl/batflat.git
synced 2026-02-10 05:56:45 +01:00
Add batflat_dir() function
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user