r107253 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107252‎ | r107253 | r107254 >
Date:01:43, 25 December 2011
Author:reedy
Status:ok
Tags:
Comment:
Add missing global
Modified paths:
  • /trunk/extensions/OracleTextSearch/SearchOracleText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OracleTextSearch/SearchOracleText.php
@@ -4,7 +4,7 @@
55
66
77 public function update( $id, $title, $text ) {
8 - global $wgExIndexMIMETypes;
 8+ global $wgExIndexMIMETypes, $wgExIndexOnHTTP;
99
1010 parent::update( $id, $title, $text );
1111
@@ -13,14 +13,14 @@
1414 if ( in_array( $file->getMimeType(), $wgExIndexMIMETypes ) ) {
1515 $dbw = wfGetDB(DB_MASTER);
1616 //$dbw->query("CALL CTXSYS.CTX_OUTPUT.START_LOG('wiki_ctx.log')"); //use for INTERNAL debuging ONLY!!!
17 -
 17+
1818 $url = $wgExIndexOnHTTP ? preg_replace( '/^https:/i', 'http:', $file->getFullUrl() ) : $file->getFullUrl();
1919 $dbw->update('searchindex',
2020 array( 'si_url' => $url ),
2121 array( 'si_page' => $id ),
2222 'SearchIndexUpdate:update' );
2323 wfDebugLog( 'OracleTextSearch', 'Updated si_url for page ' . $id );
24 -
 24+
2525 $index = $dbw->getProperty('mTablePrefix')."si_url_idx";
2626 $dbw->query( "CALL ctx_ddl.sync_index('$index')" );
2727 wfDebugLog( 'OracleTextSearch', 'Synced index: '.$index);
@@ -29,7 +29,7 @@
3030
3131 function parseQuery( $filteredText, $fulltext ) {
3232 $match = parent::parseQuery( $filteredText, $fulltext );
33 -
 33+
3434 if ( $fulltext ) {
3535 $field = $this->getIndexField($fulltext);
3636 $searchon = preg_replace( "/ CONTAINS\($field, ('.*'), 1\) > 0 /", "\\1", $match);

Status & tagging log