Physikerwelt has uploaded a new change for review.

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

Change subject: MathSearch requires MySQL
......................................................................

MathSearch requires MySQL

The MathSearch extension is designed to with mysql only.

Change-Id: I399541fab500b3429d45a9d9761e98e424d4c1e7
---
M MathSearch.hooks.php
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch 
refs/changes/58/113358/1

diff --git a/MathSearch.hooks.php b/MathSearch.hooks.php
index 5f37745..f25b7a0 100644
--- a/MathSearch.hooks.php
+++ b/MathSearch.hooks.php
@@ -26,16 +26,16 @@
 //                     // 'mssql' => 'math.mssql.sql',
 //                     // 'db2' => 'math.db2.sql',
 //             );
-//             $type = $updater->getDB()->getType();
-//             if ( isset( $map[$type] ) ) {
+               $type = $updater->getDB()->getType();
+               if ( $type == "mysql"  ) {
                        $dir = dirname( __FILE__ ) . '/db/' ;// . $map[$type];
                        $updater->addExtensionTable( 'mathindex', $dir . 
'mathsearch.sql' );
                        $updater->addExtensionTable( 'mathobservation',  $dir . 
'mathobservation.sql' );
                        $updater->addExtensionTable( 'mathvarstat', $dir . 
'mathvarstat.sql' );
                        $updater->addExtensionTable( 'mathpagestat', $dir . 
'mathpagestat.sql' );
-//             } else {
-//                     throw new MWException( "Math extension does not 
currently support $type database." );
-//             }
+               } else {
+                       throw new MWException( "Math extension does not 
currently support $type database." );
+               }
                return true;
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I399541fab500b3429d45a9d9761e98e424d4c1e7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>

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

Reply via email to