r32389 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32388‎ | r32389 | r32390 >
Date:00:13, 25 March 2008
Author:brion
Status:old
Tags:
Comment:
fix more broken stuff
Modified paths:
  • /trunk/extensions/DidYouMean/DidYouMean.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DidYouMean/DidYouMean.php
@@ -237,7 +237,7 @@
238238 # return true;
239239 #}
240240
241 - doInsert( $title->getArticleId(), $title->getText() );
 241+ wfDymDoInsert( $title->getArticleId(), $title->getText() );
242242
243243 return true;
244244 }
@@ -352,7 +352,9 @@
353353 if ($wgDBtype == 'postgres') {
354354 $sql = "UPDATE $page SET page_touched=now() FROM $dpage $whereclause";
355355 } else {
356 - $sql = "UPDATE $page, $dpage SET page_touched = " . $dbw->addQuotes( $dbw->timestamp() ) . $whereclause;
 356+ $sql = "UPDATE $page, $dpage SET page_touched = " .
 357+ $dbw->addQuotes( $dbw->timestamp() ) .
 358+ " $whereclause";
357359 }
358360
359361 $dbw->query( $sql, __METHOD__ );
@@ -373,7 +375,9 @@
374376 $dbw->delete( 'dymnorm', array('dn_normid' => $normid) );
375377
376378 # touch all pages which will now link here
377 - wfDymTouchPages( "dp_normid=$normid" );
 379+ if( $normid ) {
 380+ wfDymTouchPages( "dp_normid=$normid" );
 381+ }
378382 }
379383
380384 function wfDymDoUpdate( $pageid, $title ) {

Status & tagging log