summaryrefslogtreecommitdiff
path: root/pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch')
-rw-r--r--pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch b/pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch
new file mode 100644
index 00000000..e1c44d95
--- /dev/null
+++ b/pkgs/webapps/ttrss/plugins/feediron/json_reformat.patch
@@ -0,0 +1,18 @@
1diff --git a/init.php b/init.php
2index 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