r54699 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54698‎ | r54699 | r54700 >
Date:09:11, 10 August 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Simplify
Modified paths:
  • /trunk/extensions/Translate/Groups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Groups.php
@@ -182,9 +182,7 @@
183183
184184 class FileBasedMessageGroup extends MessageGroupBase {
185185 public function exists() {
186 - $ffs = $this->getFFS();
187 - $data = $ffs->read( 'en' );
188 - return $data && count($data['MESSAGES']);
 186+ return (bool) count($this->load('en'));
189187 }
190188
191189 public function load( $code ) {

Status & tagging log