From: Ævar Arnfjörð Bjarmason Date: Sat, 25 Jun 2005 22:31:44 +0000 (+0000) Subject: * cur_title => page_title and cur_namespace => page_namespace (overlooked X-Git-Tag: 1.5.0beta1~20 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=d182c67c674972b2960c130ff92a23052894b2ba;p=lhc%2Fweb%2Fwiklou.git * cur_title => page_title and cur_namespace => page_namespace (overlooked during the schema change) --- diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 9e09272980..a8344da40c 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -276,7 +276,7 @@ function wfSpecialWatchlist( $par ) { } if ($wgRCShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' )) { - $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .wfStrencode($obj->cur_title). "' AND wl_namespace='{$obj->cur_namespace}'" ; + $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .wfStrencode($obj->page_title). "' AND wl_namespace='{$obj->page_namespace}'" ; $res3 = $dbr->query( $sql3, DB_READ, $fname ); $x = $dbr->fetchObject( $res3 ); $rc->numberofWatchingusers = $x->n;