dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12f0f9
)
Simplify JsonContent::beautifyJSON()
author
Ori Livneh
<ori@wikimedia.org>
Wed, 17 Dec 2014 05:44:39 +0000
(21:44 -0800)
committer
Ori Livneh
<ori@wikimedia.org>
Wed, 17 Dec 2014 05:45:49 +0000
(21:45 -0800)
Change-Id: I406d5c2967615f818c9ac42abc19ab8a49e1da8d
includes/content/JsonContent.php
patch
|
blob
|
history
diff --git
a/includes/content/JsonContent.php
b/includes/content/JsonContent.php
index
b36827c
..
1ce25c2
100644
(file)
--- a/
includes/content/JsonContent.php
+++ b/
includes/content/JsonContent.php
@@
-39,7
+39,7
@@
class JsonContent extends TextContent {
* @return bool|null|string
*/
public function beautifyJSON() {
- $decoded =
FormatJson::decode( $this->getNativeData(), true
);
+ $decoded =
$this->getJsonData(
);
if ( !is_array( $decoded ) ) {
return null;
}