aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_icons.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-05 22:33:03 -0800
committerCesar G <prototech91@gmail.com>2013-12-05 23:41:21 -0800
commit8d9cc63c19325f4782e7de8f72abd38b7af2657d (patch)
tree617719aac622f9c22794c2ab626f2f27ae013743 /phpBB/includes/acp/acp_icons.php
parent7b86a5bc6008653b7ecd0ae091089bc524ab36f4 (diff)
downloadforums-8d9cc63c19325f4782e7de8f72abd38b7af2657d.tar
forums-8d9cc63c19325f4782e7de8f72abd38b7af2657d.tar.gz
forums-8d9cc63c19325f4782e7de8f72abd38b7af2657d.tar.bz2
forums-8d9cc63c19325f4782e7de8f72abd38b7af2657d.tar.xz
forums-8d9cc63c19325f4782e7de8f72abd38b7af2657d.zip
[ticket/12038] AJAXify move up/down buttons in the smilies/topic icons page.
PHPBB3-12038
Diffstat (limited to 'phpBB/includes/acp/acp_icons.php')
-rw-r--r--phpBB/includes/acp/acp_icons.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_icons.php b/phpBB/includes/acp/acp_icons.php
index 658be4cc6b..2d90d42992 100644
--- a/phpBB/includes/acp/acp_icons.php
+++ b/phpBB/includes/acp/acp_icons.php
@@ -832,6 +832,7 @@ class acp_icons
WHERE {$fields}_order = $switch_order_id
AND {$fields}_id <> $icon_id";
$db->sql_query($sql);
+ $move_executed = (bool) $db->sql_affectedrows();
// Only update the other entry too if the previous entry got updated
if ($db->sql_affectedrows())
@@ -846,6 +847,14 @@ class acp_icons
$cache->destroy('_icons');
$cache->destroy('sql', $table);
+ if ($request->is_ajax())
+ {
+ $json_response = new \phpbb\json_response;
+ $json_response->send(array(
+ 'success' => $move_executed,
+ ));
+ }
+
break;
}