Physikerwelt has uploaded a new change for review.

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


Change subject: Update depricated function call to new function
......................................................................

Update depricated function call to new function

Change-Id: I1072fc25465c045ffbf186145a3e9b17ef7dc24c
---
M SpecialMathSearch.php
1 file changed, 6 insertions(+), 3 deletions(-)


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

diff --git a/SpecialMathSearch.php b/SpecialMathSearch.php
index 53d65af..967607b 100644
--- a/SpecialMathSearch.php
+++ b/SpecialMathSearch.php
@@ -24,8 +24,11 @@
        function __construct() {
                parent::__construct( 'MathSearch' );
        }
-
-       function getLucene() {
+       /**
+        * 
+        * @return \LuceneSearch|boolean
+        */
+       public static function getLucene() {
                if ( class_exists( "LuceneSearch" ) ) {
                        return new LuceneSearch();
                } else {
@@ -195,7 +198,7 @@
                $out = '';
                // The form header, which links back to this page.
                $pageID = Title::makeTitle( NS_SPECIAL, 'MathSearch' );
-               $action = $pageID->escapeLocalURL();
+               $action = $pageID->getLinkURL();
                $out .= "<form method=\"get\" action=\"$action\">\n";
                // The search text field.
                $pattern = htmlspecialchars( $pattern );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1072fc25465c045ffbf186145a3e9b17ef7dc24c
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