mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-16 20:35:15 +02:00
[advancedcontentfilter] Move from vue-resource to jQuery ajax
- Remove commented code - Add custom $.ajaxJSON function - Add error message display when showVariables fails - Use Friendica core vue script path
This commit is contained in:
parent
4c4a8da612
commit
faad559799
3 changed files with 56 additions and 48 deletions
|
@ -416,5 +416,5 @@ function advancedcontentfilter_get_variables_guid(ServerRequestInterface $reques
|
|||
$return[str_replace('-', '_', $key)] = $value;
|
||||
}
|
||||
|
||||
return str_replace('\\\'', '\'', var_export($return, true));
|
||||
return json_encode(['variables' => str_replace('\\\'', '\'', var_export($return, true))]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue