diff --git a/function.php b/function.php index 960749d5..af7da94b 100644 --- a/function.php +++ b/function.php @@ -160,13 +160,10 @@ if (!function_exists('storage')) { if (empty($path)) { $fileName = rtrim($basePath, '/') . '/' . $fileName; } else if (empty($fileName)) { - $fileName = rtrim(initDir($basePath, $path)); + return rtrim(initDir($basePath, $path)); } else { $fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName; } - if (empty($fileName)) { - return $path; - } if (!file_exists($fileName)) { touch($fileName); }