diff options
-rw-r--r-- | lib.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,6 +28,7 @@ */ function get_submitted_packages($upload_dir, $max_modified) { + $cwd = getcwd(); chdir($upload_dir); $matches = array(); @@ -38,6 +39,8 @@ function get_submitted_packages($upload_dir, $max_modified) $matches, PREG_SET_ORDER); + chdir($cwd); + return $matches; } |