From: Roan Kattouw Date: Tue, 21 Dec 2010 16:09:32 +0000 (+0000) Subject: Migrate last call to escapeLike() in core to buildLike(). Admittedly the former makes... X-Git-Tag: 1.31.0-rc.0~33219 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=651197463ebb3261aad8a5def937244be9b75920;p=lhc%2Fweb%2Fwiklou.git Migrate last call to escapeLike() in core to buildLike(). Admittedly the former makes a bit more sense in this particular context, but it's deprecated and throws warnings. --- diff --git a/includes/installer/MysqlInstaller.php b/includes/installer/MysqlInstaller.php index 67abf43fb5..91b4ef5d95 100644 --- a/includes/installer/MysqlInstaller.php +++ b/includes/installer/MysqlInstaller.php @@ -140,8 +140,8 @@ class MysqlInstaller extends DatabaseInstaller { # Determine existing default character set if ( $conn->tableExists( "revision" ) ) { - $revision = $conn->escapeLike( $this->getVar( 'wgDBprefix' ) . 'revision' ); - $res = $conn->query( "SHOW TABLE STATUS LIKE '$revision'", __METHOD__ ); + $revision = $conn->buildLike( $this->getVar( 'wgDBprefix' ) . 'revision' ); + $res = $conn->query( "SHOW TABLE STATUS $revision", __METHOD__ ); $row = $conn->fetchObject( $res ); if ( !$row ) { $this->parent->showMessage( 'config-show-table-status' );