add missing foldmarks, fix comment

This commit is contained in:
Uwe Steinmann 2021-01-11 07:58:37 +01:00
parent d8b8719d6b
commit 717cfcb615

View File

@ -43,8 +43,8 @@ else $action=NULL;
if (isset($_POST["currenttab"])) $currenttab=$_POST["currenttab"];
else $currenttab=NULL;
// add new attribute definition ---------------------------------------------
if ($action == "download") {
// Download extension -------------------------------------------------------
if ($action == "download") { /* {{{ */
if (!isset($_POST["extname"])) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
@ -128,7 +128,8 @@ elseif ($action == "getlist") { /* {{{ */
}
add_log_line();
header("Location:../out/out.ExtensionMgr.php?currenttab=".$currenttab);
} elseif ($action == "toggle") { /* {{{ */
} /* }}} */
elseif ($action == "toggle") { /* {{{ */
if (!isset($_POST["extname"])) {
echo json_encode(array('success'=>false, 'msg'=>'Could not toggle extension'));
}