Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316607

Change subject: Avoid deprecated Database::getProperty() method
......................................................................

Avoid deprecated Database::getProperty() method

Change-Id: Ibd2d1b6340462533371b22181098c1b5138161ab
---
M SearchOracleText.php
M maintainenceFixOTSLinks.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OracleTextSearch 
refs/changes/07/316607/1

diff --git a/SearchOracleText.php b/SearchOracleText.php
index 52d68b6..c526da0 100644
--- a/SearchOracleText.php
+++ b/SearchOracleText.php
@@ -21,7 +21,7 @@
                                'SearchIndexUpdate:update' );
                        wfDebugLog( 'OracleTextSearch', 'Updated si_url for 
page ' . $id );
 
-                       $index = $dbw->getProperty('mTablePrefix')."si_url_idx";
+                       $index = $dbw->tablePrefix() . "si_url_idx";
                        $dbw->query( "CALL ctx_ddl.sync_index('$index')" );
                        wfDebugLog( 'OracleTextSearch', 'Synced index: 
'.$index);
                }
diff --git a/maintainenceFixOTSLinks.php b/maintainenceFixOTSLinks.php
index 0e20053..faad8bb 100644
--- a/maintainenceFixOTSLinks.php
+++ b/maintainenceFixOTSLinks.php
@@ -58,7 +58,7 @@
                
                if ( $syncIdx ) {
                        $this->output( "Syncing index... " );
-                       $index = $dbw->getProperty('mTablePrefix')."si_url_idx";
+                       $index = $dbw->tablePrefix() . "si_url_idx";
                        $dbw->query( "CALL ctx_ddl.sync_index('$index')" );
                        $this->output( "Done\n" );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/316607
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd2d1b6340462533371b22181098c1b5138161ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OracleTextSearch
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to