mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
Merge "Avoid expensive array_shift where possible"
This commit is contained in:
commit
7a8ea37e6f
|
@ -66,7 +66,7 @@ class TestDiscussionParser extends Maintenance {
|
|||
|
||||
$newData = unserialize( $newData );
|
||||
|
||||
$pageData = array_shift( $newData['query']['pages'] );
|
||||
$pageData = reset( $newData['query']['pages'] );
|
||||
$oldText = isset( $pageData['revisions'][1] )
|
||||
? trim( $pageData['revisions'][1]['*'] ) . "\n"
|
||||
: '';
|
||||
|
|
Loading…
Reference in a new issue