Skip to content

Commit

Permalink
Update htmly.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed May 3, 2024
1 parent 7f59909 commit e734bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/htmly.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@
$user = $_SESSION[site_url()]['user'];
$role = user('role', $user);
if ($role === 'editor' || $role === 'admin') {
$json = from($_REQUEST, 'json');
$json = $_REQUEST['json'];
reorder_pages($json);
echo json_encode(array(
'message' => 'Page order saved successfully!',
Expand Down Expand Up @@ -1341,7 +1341,7 @@
$user = $_SESSION[site_url()]['user'];
$role = user('role', $user);
if ($role === 'editor' || $role === 'admin') {
$json = from($_REQUEST, 'json');
$json = $_REQUEST['json'];
reorder_subpages($json);
echo json_encode(array(
'message' => 'Page order saved successfully!',
Expand Down

0 comments on commit e734bd7

Please sign in to comment.