Chad has uploaded a new change for review.

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

Change subject: WIP: Remove LQT search
......................................................................

WIP: Remove LQT search

It's bad and confusing and I don't want to support it in new search.

Change-Id: I55177e91c40a3035b60be79c04ca7067681a0505
---
M i18n/Lqt.i18n.php
M pages/TalkpageView.php
2 files changed, 0 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/62/112062/1

diff --git a/i18n/Lqt.i18n.php b/i18n/Lqt.i18n.php
index a2b4ad2..3755314 100644
--- a/i18n/Lqt.i18n.php
+++ b/i18n/Lqt.i18n.php
@@ -229,9 +229,6 @@
 $7",
 
        // Search
-       'lqt-search-legend' => 'Search discussions on this page',
-       'lqt-search-label' => 'Search terms:',
-       'lqt-search-button' => 'Search',
        'searchprofile-threads' => 'Discussions',
        'searchprofile-threads-tooltip' => 'Search threaded discussions and 
talk pages',
 
diff --git a/pages/TalkpageView.php b/pages/TalkpageView.php
index 1f888e6..eee67ef 100644
--- a/pages/TalkpageView.php
+++ b/pages/TalkpageView.php
@@ -307,10 +307,6 @@
                        $talkpageHeader .= $newThreadLink;
                }
 
-               global $wgSearchTypeAlternatives, $wgSearchType;
-               if ( $wgSearchType == "LuceneSearch" || in_array( 
"LuceneSearch", $wgSearchTypeAlternatives ?: array() ) ) {
-                       $talkpageHeader .= $this->getSearchBox();
-               }
                $talkpageHeader .= $this->showTalkpageViewOptions( $article );
                $talkpageHeader = Xml::tags(
                        'div',
@@ -358,31 +354,6 @@
                );
 
                return false;
-       }
-
-       function getSearchBox() {
-               $html = '';
-               $html .= Xml::inputLabel(
-                       wfMessage( 'lqt-search-label' )->text(),
-                       'lqt_search',
-                       'lqt-search-box',
-                       45
-               );
-
-               $html .= ' ' . Xml::submitButton( wfMessage( 
'lqt-search-button' )->text() );
-               $html .= Html::hidden( 'title', $this->title->getPrefixedText() 
);
-               $html = Xml::tags(
-                       'form',
-                       array(
-                               'action' => $this->title->getLocalURL(),
-                               'method' => 'get'
-                       ),
-                       $html
-               );
-
-               $html = Xml::tags( 'div', array( 'class' => 
'lqt-talkpage-search' ), $html );
-
-               return $html;
        }
 
        function getPager() {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55177e91c40a3035b60be79c04ca7067681a0505
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to