Index: wikiPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phpwiki/fpw/wikiPage.php,v
retrieving revision 1.132
diff -u -r1.132 wikiPage.php
--- wikiPage.php	5 May 2002 16:17:26 -0000	1.132
+++ wikiPage.php	10 May 2002 05:17:58 -0000
@@ -172,8 +172,9 @@
         else $n = $n[1] ;
         global $wikiTalk , $wikiUser , $wikiNamespaceTalk ;
         $connection = getDBconnection () ;
-        $sql = "SELECT cur_title FROM cur WHERE cur_title LIKE \"%:$n\"" ;
-        $result = mysql_query ( $sql , $connection ) ;
+        #$sql = "SELECT cur_title FROM cur WHERE cur_title LIKE \"%:$n\"" ;
+        #$result = mysql_query ( $sql , $connection ) ;
+	
         $u = new WikiTitle ;
         if ( $this->namespace != "" ) {
             $dummy = new wikiTitle ;
@@ -199,7 +200,8 @@
             array_push ( $a , "<a class=\"$style\" href=\"".wikiLink($dummy->url)."\">$n2</a>" ) ;
             }
 
-        while ( $s = mysql_fetch_object ( $result ) ) {
+        #while ( $s = mysql_fetch_object ( $result ) ) {
+	$s = $this->getTalkPage(); {
             $t = explode ( ":" , $s->cur_title ) ;
             $t = $u->getNiceTitle ( $t[0] ) ;
             #if ( strtolower ( substr ( $t , -strlen($wikiTalk) ) ) != $wikiTalk and strtolower ( $t ) != $this->namespace )
@@ -208,7 +210,7 @@
                 #array_push ( $a , "<a style=\"color:green;text-decoration:none\" href=\"".wikiLink("$t:$n")."\">$t</a>" ) ;
                 array_push ( $a , "<a class=\"green\" href=\"".wikiLink("$t:$n")."\">$t</a>" ) ;
             }
-        if ( $result != "" ) mysql_free_result ( $result ) ;
+        #if ( $result != "" ) mysql_free_result ( $result ) ;
         return $a ;
         }
 
