r50427 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50426‎ | r50427 | r50428 >
Date:10:06, 10 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Remove debug print
* Actually use the cached data
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/tag/TranslatablePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -656,7 +656,6 @@
657657 continue;
658658 }
659659 foreach ( $markedRevs as $r ) {
660 - var_dump( $rev );
661660 if ( $rev === $r->rt_revision ) break;
662661 $changed = explode( '|', unserialize($r->rt_value) );
663662
Index: trunk/extensions/Translate/tag/TranslatablePage.php
@@ -267,7 +267,7 @@
268268 global $wgMemc;
269269 $memcKey = wfMemcKey( 'pt', 'status', $this->getTitle()->getPrefixedText() );
270270 $cache = $wgMemc->get( $memcKey );
271 - #if ( is_array( $cache ) ) return $cache;
 271+ if ( is_array( $cache ) ) return $cache;
272272
273273 // Fetch the available translation pages from database
274274 $dbr = wfGetDB( DB_SLAVE );

Status & tagging log