r51276 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51275‎ | r51276 | r51277 >
Date:10:36, 1 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
*mumbles*, don't return translations for author and return translation instead of nothing
Modified paths:
  • /trunk/extensions/Translate/Message.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Message.php
@@ -46,11 +46,11 @@
4747 return $this->definition;
4848 }
4949 public function translation() {
50 - if ( !isset($this->row) ) return null;
 50+ if ( !isset($this->row) ) return $this->infile();
5151 return Revision::getRevisionText( $this->row );
5252 }
5353 public function author() {
54 - if ( !isset($this->row) ) return $this->infile();
 54+ if ( !isset($this->row) ) return null;
5555 return $this->row->rev_user_text;
5656 }
5757

Status & tagging log