Index: trunk/phase3/includes/search/SearchOracle.php |
— | — | @@ -238,6 +238,7 @@ |
239 | 239 | * @param $text String |
240 | 240 | */ |
241 | 241 | function update($id, $title, $text) { |
| 242 | + global $wgDBprefix; |
242 | 243 | $dbw = wfGetDB(DB_MASTER); |
243 | 244 | $dbw->replace('searchindex', |
244 | 245 | array('si_page'), |
— | — | @@ -253,9 +254,9 @@ |
254 | 255 | // ALTER SESSION SET CURRENT_SCHEMA = ... |
255 | 256 | // was used. |
256 | 257 | $dbw->query( "CALL ctx_ddl.sync_index(" . |
257 | | - $dbw->addQuotes( $dbw->getDBname() . '.si_text_idx' ) . ")" ); |
| 258 | + $dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_text_idx' ) . ")" ); |
258 | 259 | $dbw->query( "CALL ctx_ddl.sync_index(" . |
259 | | - $dbw->addQuotes( $dbw->getDBname() . '.si_title_idx' ) . ")" ); |
| 260 | + $dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_title_idx' ) . ")" ); |
260 | 261 | } |
261 | 262 | |
262 | 263 | /** |