mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-11 06:58:41 +00:00
Test fixes
This commit is contained in:
parent
ffd4490c52
commit
700f060ca4
|
|
@ -261,7 +261,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$navView = new NavigationView($this->app, $request, $response);
|
||||
$navView->setTemplate('/Modules/Navigation/Theme/Backend/mid');
|
||||
$navView->setNav($nav->getNav());
|
||||
$navView->setLanguage($request->getL11n()->language);
|
||||
$navView->setLanguage($request->getL11n()->getLanguage());
|
||||
$navView->setParent($pageId);
|
||||
|
||||
return $navView;
|
||||
|
|
|
|||
|
|
@ -178,15 +178,14 @@ class UploadFile
|
|||
\mkdir($path, '0655', true);
|
||||
}
|
||||
|
||||
if (!move_uploaded_file($f['tmp_name'], $path . '/' . $this->fileName)) {
|
||||
if (!move_uploaded_file($path = $f['tmp_name'], $path . '/' . $this->fileName) || !is_uploaded_file($path)) {
|
||||
// couldn't move
|
||||
$result[$key]['status'] = UploadStatus::NOT_MOVABLE;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
$result[$key]['path'] = $rpath;
|
||||
|
||||
$result[$key]['path'] = $rpath;
|
||||
$result[$key]['status'] = UploadStatus::OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user