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