r97039 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r97038
|
r97039
|
r97040
>
Date:
07:47, 14 September 2011
Author:
nikerabbit
Status:
ok
Tags:
Comment:
Drop JSON support. It was never used and causes problems like
bug 30854
since PHP managed to screw up json_decode too.
It was not a good idea to autodetection of the format anyway, but it isn't such a problem with unserialize.
Modified paths:
/trunk/phase3/includes/logging/LogEntry.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/logging/LogEntry.php
—
—
@@ -210,14 +210,8 @@
211
211
$this->params = $params;
212
212
$this->legacy = false;
213
213
} else {
214
- $params = FormatJson::decode( $blob, true /* array */ );
215
- if ( $params !== null ) {
216
- $this->params = $params;
217
- $this->legacy = false;
218
- } else {
219
- $this->params = $blob === '' ? array() : explode( "\n", $blob );
220
- $this->legacy = true;
221
- }
214
+ $this->params = $blob === '' ? array() : explode( "\n", $blob );
215
+ $this->legacy = true;
222
216
}
223
217
}
224
218
return $this->params;
Status & tagging log
07:57, 14 September 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r97039
[
removed:
new
added:
ok]