Skip to content

Commit 114d75a

Browse files
committed
feat(manager): merge with 1.4.x
META: d5827b6 e88614d 4afe717
1 parent 3f91295 commit 114d75a

15 files changed

Lines changed: 36 additions & 24 deletions

manager/actions/logging.static.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<div class="container container-body">
1818
<div class="element-edit-message-tab alert alert-warning"><?= $_lang["mgrlog_query_msg"] ?></div>
1919

20-
<form action="index.php?a=13" name="logging" method="POST" class="form-group">
20+
<form name="logging" method="post" action="index.php" class="form-group">
21+
<input type="hidden" name="a" value="13">
2122
<div class="row form-row">
2223
<div class="col-sm-4 col-md-3 col-lg-2"><b><?= $_lang["mgrlog_user"] ?></b></div>
2324
<div class="col-sm-8 col-md-5 col-lg-4">

manager/actions/messages.static.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ function hideSpans(showSpan)
236236
}
237237
}
238238
</script>
239-
<form action="index.php?a=66" method="post" name="messagefrm">
239+
<form name="messagefrm" method="post" action="index.php">
240+
<input type="hidden" name="a" value="66">
240241
<b><?= $_lang['messages_send_to'] ?>:</b>
241242
<div class="form-group form-inline">
242243
<div class="row form-row">

manager/actions/mutate_module.dynamic.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function SetUrl(url, width, height, alt) {
426426

427427
</script>
428428

429-
<form name="mutate" id="mutate" class="module" method="post" action="index.php?a=109">
429+
<form name="mutate" method="post" action="index.php" id="mutate" class="module">
430430
<?php
431431
// invoke OnModFormPrerender event
432432
$evtOut = $modx->invokeEvent('OnModFormPrerender', array('id' => $id));
@@ -440,6 +440,7 @@ function SetUrl(url, width, height, alt) {
440440
$docBlockList = $modx->convertDocBlockIntoList($docBlock);
441441
$internal = array();
442442
?>
443+
<input type="hidden" name="a" value="109">
443444
<input type="hidden" name="id" value="<?= $content['id'] ?>">
444445
<input type="hidden" name="mode" value="<?= $modx->getManagerApi()->action ?>">
445446

@@ -541,7 +542,7 @@ function SetUrl(url, width, height, alt) {
541542
<span><?= $_lang['module_code'] ?></span>
542543
</div>
543544
<div class="section-editor clearfix">
544-
<textarea dir="ltr" class="phptextarea" name="post" rows="20" wrap="soft" onchange="documentDirty=true;"><?= $modx->getPhpCompat()->htmlspecialchars($content['modulecode']) ?></textarea>
545+
<textarea dir="ltr" class="phptextarea" name="post" rows="20" wrap="soft" onchange="documentDirty=true;"><?= $modx->getPhpCompat()->htmlspecialchars($content['post'] ?? $content['modulecode']) ?></textarea>
545546
</div>
546547
<!-- PHP text editor end -->
547548
</div>

manager/actions/mutate_module_resources.dynamic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ function openSelector(resource, mode, callback, w, h) {
181181
}
182182
</script>
183183

184-
<form name="mutate" method="post" action="index.php?a=113">
184+
<form name="mutate" method="post" action="index.php">
185+
<input type="hidden" name="a" value="113">
185186
<input type="hidden" name="op" value="" />
186187
<input type="hidden" name="rt" value="" />
187188
<input type="hidden" name="newids" value="" />

manager/actions/mutate_role.dynamic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ function changestate(element) {
7777

7878
</script>
7979

80-
<form action="index.php?a=36" method="post" name="userform" enctype="multipart/form-data">
80+
<form name="userform" method="post" action="index.php" enctype="multipart/form-data">
81+
<input type="hidden" name="a" value="36">
8182
<input type="hidden" name="mode" value="<?= $modx->getManagerApi()->action ?>">
8283
<input type="hidden" name="id" value="<?= $_GET['id'] ?>">
8384

manager/actions/mutate_user.dynamic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function showHide(what, onoff) {
231231

232232
</script>
233233

234-
<form action="index.php?a=32" method="post" name="userform">
234+
<form name="userform" method="post" action="index.php">
235235
<?php
236236

237237
// invoke OnUserFormPrerender event
@@ -242,6 +242,7 @@ function showHide(what, onoff) {
242242
echo implode("", $evtOut);
243243
}
244244
?>
245+
<input type="hidden" name="a" value="32">
245246
<input type="hidden" name="mode" value="<?php echo $modx->getManagerApi()->action; ?>">
246247
<input type="hidden" name="id" value="<?php echo $user ?>">
247248
<input type="hidden" name="blockedmode" value="<?php echo ($userdata['blocked'] == 1 || ($userdata['blockeduntil'] > time() && $userdata['blockeduntil'] != 0) || ($userdata['blockedafter'] < time() && $userdata['blockedafter'] != 0) || $userdata['failedlogins'] > 3) ? "1" : "0" ?>" />

manager/actions/mutate_web_user.dynamic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,15 @@ function showHide(what, onoff) {
215215

216216
</script>
217217

218-
<form action="index.php?a=89" method="post" name="userform">
218+
<form name="userform" method="post" action="index.php">
219219
<?php
220220
// invoke OnWUsrFormPrerender event
221221
$evtOut = $modx->invokeEvent("OnWUsrFormPrerender", array("id" => $user));
222222
if(is_array($evtOut)) {
223223
echo implode("", $evtOut);
224224
}
225225
?>
226+
<input type="hidden" name="a" value="89">
226227
<input type="hidden" name="mode" value="<?php echo $modx->getManagerApi()->action; ?>" />
227228
<input type="hidden" name="id" value="<?php echo $user ?>" />
228229
<input type="hidden" name="blockedmode" value="<?php echo ($userdata['blocked'] == 1 || ($userdata['blockeduntil'] > time() && $userdata['blockeduntil'] != 0) || ($userdata['blockedafter'] < time() && $userdata['blockedafter'] != 0) || $userdata['failedlogins'] > 3) ? "1" : "0" ?>" />

manager/actions/search.static.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
<div class="tab-page">
2929
<div class="container container-body">
30-
<form action="index.php?a=71" method="post" name="searchform" enctype="multipart/form-data" class="form-group">
30+
<form name="searchform" method="post" action="index.php" enctype="multipart/form-data" class="form-group">
31+
<input type="hidden" name="a" value="71">
3132
<div class="row form-row">
3233
<div class="col-md-3 col-lg-2"><?= $_lang['search_criteria_top'] ?></div>
3334
<div class="col-md-9 col-lg-10">

manager/media/style/default/js/modx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@
15881588
if (!!w.main.__alertQuit) {
15891589
w.main.alert = function(a) { };
15901590
var message = w.main.document.body.innerHTML;
1591-
w.main.document.body.innerHTML = '';
1591+
w.main.document.body.style.display = 'none';
15921592
history.pushState(null, d.title, modx.getActionFromUrl(w.location.search, 2) ? modx.MODX_MANAGER_URL : '#' + w.location.search);
15931593
w.onpopstate = function() {
15941594
history.go(1);

manager/media/style/default/js/modx.min.js

100755100644
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)