[MediaWiki-commits] [Gerrit] Update depricated function call to new function - change (mediawiki...MathSearch)

2013-07-14 Thread Physikerwelt (Code Review)
Physikerwelt has submitted this change and it was merged.

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(-)

Approvals:
  Physikerwelt: Verified; Looks good to me, approved



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 .= "\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: merged
Gerrit-Change-Id: I1072fc25465c045ffbf186145a3e9b17ef7dc24c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt 
Gerrit-Reviewer: Physikerwelt 

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


[MediaWiki-commits] [Gerrit] Update depricated function call to new function - change (mediawiki...MathSearch)

2013-07-14 Thread Physikerwelt (Code Review)
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 .= "\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 

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