@@ -422,10 +422,13 @@ function materio_flag_ajax_list($fid, $page = 0){
|
||||
$debug = false;
|
||||
|
||||
$_GET['page'] = $page;
|
||||
|
||||
$list_path = 'lists';
|
||||
|
||||
$path = $list_path.'/'.$fid;
|
||||
if($fid = 1){
|
||||
$list_path = $path = 'bookmarks';
|
||||
}else{
|
||||
$list_path = 'lists';
|
||||
$path = $list_path.'/'.$fid;
|
||||
}
|
||||
|
||||
|
||||
// check if request is ajax, if not rediret to search_api_page page with right keys
|
||||
if (!$debug && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest')) {
|
||||
@@ -459,7 +462,7 @@ function materio_flag_ajax_list($fid, $page = 0){
|
||||
menu_set_active_item($path);
|
||||
$return = menu_execute_active_handler($path, FALSE);
|
||||
|
||||
// dsm($return, '$return');
|
||||
dsm($return, '$return');
|
||||
|
||||
if (is_int($return)) {
|
||||
switch ($return) {
|
||||
|
||||
Reference in New Issue
Block a user