r51225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51224‎ | r51225 | r51226 >
Date:10:55, 31 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Was still broken
Modified paths:
  • /trunk/extensions/Translate/Message.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Message.php
@@ -50,7 +50,7 @@
5151 return Revision::getRevisionText( $this->row );
5252 }
5353 public function author() {
54 - if ( !isset($this->row) ) return null;
 54+ if ( !isset($this->row) ) return $this->infile();
5555 return $this->row->rev_user_text;
5656 }
5757
@@ -66,13 +66,19 @@
6767
6868 class FatMessage extends TMessage {
6969 protected $translation = null;
 70+ protected $infile = null;
7071 public function setTranslation( $text ) {
7172 $this->translation = $text;
7273 }
7374
7475 public function translation() {
 76+ if ( $this->translation === null ) return $this->infile;
7577 return $this->translation;
7678 }
7779
7880 public function author() {}
 81+
 82+ public function infile() {
 83+ return $this->infile;
 84+ }
7985 }
\ No newline at end of file

Status & tagging log