diff --git a/plugins/box/pages/js/pages.js b/plugins/box/pages/js/pages.js index 4b079d5..749f22e 100644 --- a/plugins/box/pages/js/pages.js +++ b/plugins/box/pages/js/pages.js @@ -9,7 +9,7 @@ $.monstra.pages = { pageExpand: function(slug, expand, token) { $.ajax({ type:"post", - data:"slug="+slug+"&expand="+expand+"&token="+token, + data:"page_slug="+slug+"&page_expand="+expand+"&token="+token, url: $('form input[name="url"]').val() }); }, diff --git a/plugins/box/pages/pages.admin.php b/plugins/box/pages/pages.admin.php index 59408be..0651db3 100755 --- a/plugins/box/pages/pages.admin.php +++ b/plugins/box/pages/pages.admin.php @@ -23,10 +23,10 @@ class PagesAdmin extends Backend */ public static function _pageExpandAjax() { - if (Request::post('slug')) { + if (Request::post('page_slug')) { if (Security::check(Request::post('token'))) { $pages = new Table('pages'); - $pages->updateWhere('[slug="'.Request::post('slug').'"]', array('expand' => Request::post('expand'))); + $pages->updateWhere('[slug="'.Request::post('page_slug').'"]', array('expand' => Request::post('page_expand'))); Request::shutdown(); } else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); } }