Skip to content

Commit

Permalink
getFullDirectory() return if file_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jul 31, 2023
1 parent 565c0f1 commit e2db871
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5333,6 +5333,9 @@ function saveSetting($prefix, $nameAndValue, $autoload = 'yes')

function getFullDirectory($dir)
{
if (is_file($dir) && file_exists($dir)) {
return $dir;
}
if (!is_dir($dir)) {
$dir = ROOT_PATH . $dir;
}
Expand Down

0 comments on commit e2db871

Please sign in to comment.