X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=install-utils.inc;h=34dd701762ae998a85095c98fa3a3f01287cee88;hb=2a2ef856f78cf1f420a52288a46b6a4a77e501be;hp=040c34dc81914ebc3a38ae96793293f6e1cc63e6;hpb=0c3553b7d4dd12d80d11a10afa7ebaeb1b1da86f;p=lhc%2Fweb%2Fwiklou.git diff --git a/install-utils.inc b/install-utils.inc index 040c34dc81..34dd701762 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -132,10 +132,11 @@ function dbsource( $fname, $database = false ) { # Obsolete, use Database::fieldExists() function field_exists( $table, $field ) { $fname = "Update script: field_exists"; - $res = wfQuery( "DESCRIBE $table", $fname ); + $db =& wfGetDB( DB_SLAVE ); + $res = $db->query( "DESCRIBE $table", $fname ); $found = false; - while ( $row = wfFetchObject( $res ) ) { + while ( $row = $db->fetchObject( $res ) ) { if ( $row->Field == $field ) { $found = true; break;