r59002 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59001‎ | r59002 | r59003 >
Date:14:04, 13 November 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Add a FIXME and update version to today.
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -96,6 +96,8 @@
9797
9898 $source = $page->getTitle();
9999 $target = Title::makeTitle( $source->getNamespace(), $source->getDBkey() . "/$code" );
 100+
 101+ // FIXME: if $taget->exists() is false, all sister articles should be purged.
100102 $flags &= ~EDIT_NEW & ~EDIT_UPDATE; // We don't know
101103
102104 $job = RenderJob::newJob( $target );
@@ -135,6 +137,8 @@
136138 return true;
137139 }
138140
 141+
 142+
139143 public static function languages( $data, $params, $parser ) {
140144 $title = $parser->getTitle();
141145
@@ -145,7 +149,6 @@
146150 }
147151 if ( $page === false || $page->getMarkedTag() === false ) return '';
148152
149 -
150153 $status = $page->getTranslationPercentages();
151154 if ( !$status ) return '';
152155
Index: trunk/extensions/Translate/Translate.php
@@ -12,7 +12,7 @@
1313 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1414 */
1515
16 -define( 'TRANSLATE_VERSION', '2009-08-03' );
 16+define( 'TRANSLATE_VERSION', '2009-11-13' );
1717
1818 $wgExtensionCredits['specialpage'][] = array(
1919 'path' => __FILE__,

Status & tagging log