From: Brion Vibber Date: Wed, 3 Dec 2003 12:47:00 +0000 (+0000) Subject: Actually send the delete query X-Git-Tag: 1.1.0~28 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=62b8d7794d4efa5a8258a39a3330d08c733a311a;p=lhc%2Fweb%2Fwiklou.git Actually send the delete query --- diff --git a/maintenance/remove-brokenlinks.php b/maintenance/remove-brokenlinks.php index 2023318e97..17886c7a12 100644 --- a/maintenance/remove-brokenlinks.php +++ b/maintenance/remove-brokenlinks.php @@ -48,15 +48,15 @@ while( $s = wfFetchObject( $res ) ) { while( $s = wfFetchObject( $res2 ) ) { $from = Title::makeTitle( $s->cur_namespace, $s->cur_title ); $xt = $from->getPrefixedText(); - echo "Found bad brokenlink to [[$tt]] from page #$s->cur_id [[$xt]]!\n"; + echo "Found bad brokenlink to [[$t]] from page #$s->cur_id [[$xt]]!\n"; $any = true; } wfFreeResult( $res2 ); if($any) { echo "Removing brokenlinks to [[$t]]...\n"; $sql3 = "DELETE FROM brokenlinks WHERE bl_to='$tt'"; - #$res3 = wfQuery( $sql3, DB_WRITE ); - echo "-- $sql3\n"; + $res3 = wfQuery( $sql3, DB_WRITE ); + #echo "-- $sql3\n"; } } else { echo "Illegal title?! Namespace $s->cur_namespace, title '$s->cur_title'\n";