Commit 86312eb 1 parent 48a62e5 commit 86312eb Copy full SHA for 86312eb
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ $.monstra.pages = {
9
9
pageExpand : function ( slug , expand , token ) {
10
10
$ . ajax ( {
11
11
type :"post" ,
12
- data :"slug =" + slug + "&expand =" + expand + "&token=" + token ,
12
+ data :"page_slug =" + slug + "&page_expand =" + expand + "&token=" + token ,
13
13
url : $ ( 'form input[name="url"]' ) . val ( )
14
14
} ) ;
15
15
} ,
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ class PagesAdmin extends Backend
23
23
*/
24
24
public static function _pageExpandAjax ()
25
25
{
26
- if (Request::post ('slug ' )) {
26
+ if (Request::post ('page_slug ' )) {
27
27
if (Security::check (Request::post ('token ' ))) {
28
28
$ pages = new Table ('pages ' );
29
- $ pages ->updateWhere ('[slug=" ' .Request::post ('slug ' ).'"] ' , array ('expand ' => Request::post ('expand ' )));
29
+ $ pages ->updateWhere ('[slug=" ' .Request::post ('page_slug ' ).'"] ' , array ('expand ' => Request::post ('page_expand ' )));
30
30
Request::shutdown ();
31
31
} else { die ('Request was denied because it contained an invalid security token. Please refresh the page and try again. ' ); }
32
32
}
You can’t perform that action at this time.
0 commit comments