Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -118,7 +118,8 @@ |
119 | 119 | function checkForEnabledSearch() { |
120 | 120 | if ( self::$fulltextEnabled === null ) { |
121 | 121 | self::$fulltextEnabled = false; |
122 | | - $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = 'searchindex'", __METHOD__ ); |
| 122 | + $table = $this->tableName( 'searchindex' ); |
| 123 | + $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = '$table'", __METHOD__ ); |
123 | 124 | if ( $res ) { |
124 | 125 | $row = $res->fetchRow(); |
125 | 126 | self::$fulltextEnabled = stristr($row['sql'], 'fts' ) !== false; |