Index: trunk/extensions/DidYouMean/DidYouMean.php |
— | — | @@ -237,7 +237,7 @@ |
238 | 238 | # return true; |
239 | 239 | #} |
240 | 240 | |
241 | | - doInsert( $title->getArticleId(), $title->getText() ); |
| 241 | + wfDymDoInsert( $title->getArticleId(), $title->getText() ); |
242 | 242 | |
243 | 243 | return true; |
244 | 244 | } |
— | — | @@ -352,7 +352,9 @@ |
353 | 353 | if ($wgDBtype == 'postgres') { |
354 | 354 | $sql = "UPDATE $page SET page_touched=now() FROM $dpage $whereclause"; |
355 | 355 | } 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"; |
357 | 359 | } |
358 | 360 | |
359 | 361 | $dbw->query( $sql, __METHOD__ ); |
— | — | @@ -373,7 +375,9 @@ |
374 | 376 | $dbw->delete( 'dymnorm', array('dn_normid' => $normid) ); |
375 | 377 | |
376 | 378 | # touch all pages which will now link here |
377 | | - wfDymTouchPages( "dp_normid=$normid" ); |
| 379 | + if( $normid ) { |
| 380 | + wfDymTouchPages( "dp_normid=$normid" ); |
| 381 | + } |
378 | 382 | } |
379 | 383 | |
380 | 384 | function wfDymDoUpdate( $pageid, $title ) { |