From: Reedy Date: Wed, 13 Mar 2013 20:08:28 +0000 (+0000) Subject: Replace weird usage of explode X-Git-Tag: 1.31.0-rc.0~19909 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=1c3bcd07882b1e0a2c0abad5a69cd125cbb35255;p=lhc%2Fweb%2Fwiklou.git Replace weird usage of explode Change-Id: Ic4021be695c9ed15dea0da0e94967a0d7d441670 --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 3170a7d184..b589057026 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -121,8 +121,10 @@ class ChangesList extends ContextSource { */ private function preCacheMessages() { if ( !isset( $this->message ) ) { - foreach ( explode( ' ', 'cur diff hist last blocklink history ' . - 'semicolon-separator pipe-separator' ) as $msg ) { + foreach ( array( + 'cur', 'diff', 'hist', 'last', 'blocklink', 'history', + 'semicolon-separator', 'pipe-separator' ) as $msg + ) { $this->message[$msg] = $this->msg( $msg )->escaped(); } }