Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(file): fix upload from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and ajsb85 committed Nov 25, 2017
1 parent 10d67d2 commit bcae847
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions front/file.form.php
Expand Up @@ -43,21 +43,21 @@
$_GET["withtemplate"] = "";
}

$file = new PluginFlyvemdmFile();
$flyveFile = new PluginFlyvemdmFile();
if (isset($_POST['add'])) {
$file->check($_POST['id'], CREATE);
$file->add($_POST);
$flyveFile->check(-1, CREATE, $_POST);
$flyveFile->add($_POST);
Html::back();
} else {
$file->check($_GET['id'], READ);
$flyveFile->check($_GET['id'], READ);
Html::header(
PluginFlyvemdmFile::getTypeName(Session::getPluralNumber()),
'',
'admin',
'PluginFlyvemdmMenu',
'file'
);
$file->display([
$flyveFile->display([
'id' => $_GET["id"], 'withtemplate' => $_GET["withtemplate"]
]);

Expand Down

0 comments on commit bcae847

Please sign in to comment.