diff --git a/include/functions.php b/include/functions.php index 4af12027..d6a9a0a8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4420,4 +4420,12 @@ function saveSetting($prefix, $nameAndValue) sql_query($sql) or sqlerr(__FILE__, __LINE__); } +function getFullDirectory($dir) +{ + if (!is_dir($dir)) { + $dir = ROOT_PATH . $dir; + } + return realpath($dir); +} + ?>