[Mediawiki-l] MW1.11, problem with database access.

Jean-Lou Dupont jeanlou.dupont at gmail.com
Tue Oct 9 14:41:23 UTC 2007


Hi,

I used to do:
        $db =& wfGetDB(DB_SLAVE);
        $tbl = $db->tableName('interwiki');

        $result = $db->query("SELECT iw_prefix,iw_url,iw_local,iw_trans 
FROM  $tbl");
       
        while ( $row = mysql_fetch_array($result) )
            $this->iwl[ $row[0] ] = array(    'uri'   => $row[1],
                                                            'local' => 
$row[2],
                                                            'trans' => 
$row[3] );
        $db->freeResult( $result );

in MW1.10 but now it seems this code does not work under MW1.11.

Help please,
Jean-Lou Dupont.



More information about the MediaWiki-l mailing list