mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove $_POST['submit'] == "Upload" if the button is translated then it won't say "Upload". Remove an unused variable.
This commit is contained in:
@@ -91,7 +91,7 @@ if ($_GET['a'] == "download") {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['upload_file']['tmp_name'])) {
|
if (is_uploaded_file($_FILES['upload_file']['tmp_name'])) {
|
||||||
$file_ext = strtolower(pathinfo($_FILES['upload_file']['name'], PATHINFO_EXTENSION));
|
$file_ext = strtolower(pathinfo($_FILES['upload_file']['name'], PATHINFO_EXTENSION));
|
||||||
if ($file_ext == 'wav' || $file_ext == 'mp3') {
|
if ($file_ext == 'wav' || $file_ext == 'mp3') {
|
||||||
if ($_POST['type'] == 'moh' && permission_exists('music_on_hold_add')) {
|
if ($_POST['type'] == 'moh' && permission_exists('music_on_hold_add')) {
|
||||||
@@ -140,7 +140,7 @@ if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['upload_file']['t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,8 +150,6 @@ if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['upload_file']['t
|
|||||||
$moh->xml();
|
$moh->xml();
|
||||||
$moh->save();
|
$moh->save();
|
||||||
|
|
||||||
//set an upload message
|
|
||||||
$save_msg = "Uploaded file to ".$target_dir."/".htmlentities($_FILES['upload_file']['name']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user