From: Max Semenik Date: Mon, 1 Nov 2010 19:51:36 +0000 (+0000) Subject: Follow-up r68127: honor table prefix, perverted though it may seem on SQLite. X-Git-Tag: 1.31.0-rc.0~34139 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=108f8f8ef429074017b6e35fdffcfc13aeb895af;p=lhc%2Fweb%2Fwiklou.git Follow-up r68127: honor table prefix, perverted though it may seem on SQLite. --- diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 151662bb0b..3a9a171d80 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -118,7 +118,8 @@ class DatabaseSqlite extends DatabaseBase { function checkForEnabledSearch() { if ( self::$fulltextEnabled === null ) { self::$fulltextEnabled = false; - $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = 'searchindex'", __METHOD__ ); + $table = $this->tableName( 'searchindex' ); + $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = '$table'", __METHOD__ ); if ( $res ) { $row = $res->fetchRow(); self::$fulltextEnabled = stristr($row['sql'], 'fts' ) !== false;