]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blob - pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch
Initial commit published for NUR
[perso/Immae/Config/Nix/NUR.git] / pkgs / webapps / ttrss / plugins / feediron / json_reformat.patch
1 diff --git a/init.php b/init.php
2 index 3c0f2f9..1aad146 100644
3 --- a/init.php
4 +++ b/init.php
5 @@ -600,10 +600,11 @@ class Feediron extends Plugin implements IHandler
6 return false;
7 }
8
9 - $this->host->set($this, 'json_conf', Feediron_Json::format($json_conf));
10 + $new_conf = json_encode(json_decode($json_conf), JSON_PRETTY_PRINT);
11 + $this->host->set($this, 'json_conf', $new_conf);
12 $json_reply['success'] = true;
13 $json_reply['message'] = __('Configuration saved.');
14 - $json_reply['json_conf'] = Feediron_Json::format($json_conf);
15 + $json_reply['json_conf'] = $new_conf;
16 echo json_encode($json_reply);
17 }
18