File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function xmlhttprequest_plugin_snippets() {
88
99 # load snippets available to the user
1010 $ user_id = auth_get_current_user_id ();
11- $ snippets = Snippet::load_by_type_user (0 , $ user_id );
11+ $ snippets = Snippet::clean (Snippet:: load_by_type_user (0 , $ user_id), " form " );
1212
1313 $ data_array = array (
1414 "lang " => array (
@@ -19,12 +19,10 @@ function xmlhttprequest_plugin_snippets() {
1919
2020 # arrange the available snippets into the data array
2121 foreach ($ snippets as $ snippet ) {
22- $ snippet = Snippet::clean ($ snippet );
2322 $ data_array ["bugnote_text " ][$ snippet ->id ] = $ snippet ;
2423 }
2524
2625 $ json = json_encode ($ data_array );
27- file_put_contents ("/tmp/snippets " , print_r ($ json , true ));
2826 echo $ json ;
2927
3028 plugin_pop_current ();
You can’t perform that action at this time.
0 commit comments