From 651197463ebb3261aad8a5def937244be9b75920 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 21 Dec 2010 16:09:32 +0000 Subject: [PATCH] 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. --- includes/installer/MysqlInstaller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ); -- 2.20.1