r69282 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69281‎ | r69282 | r69283 >
Date:07:49, 12 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fixed a bug that sometimes caused the latest version of translatable page
to be loaded instead of the latest marked version
Modified paths:
  • /trunk/extensions/Translate/tag/TranslatablePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/TranslatablePage.php
@@ -101,7 +101,7 @@
102102 case 'text':
103103 break;
104104 case 'title':
105 - $revision = $this->getMarkedTag();
 105+ $this->revision = $this->getMarkedTag();
106106 case 'revision':
107107 $rev = Revision::newFromTitle( $this->getTitle(), $this->revision );
108108 $this->text = $rev->getText();
@@ -114,7 +114,6 @@
115115 }
116116
117117 $this->init = true;
118 -
119118 return $this->text;
120119 }
121120

Status & tagging log