Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/100332
Change subject: Pass context to HTMLForm, don't use HTMLForm::setTitle
......................................................................
Pass context to HTMLForm, don't use HTMLForm::setTitle
Change-Id: I27d1843b6dc380380b5b08b13cc566b22bac8172
---
M SpecialMathIndex.php
M SpecialMathSearch.php
2 files changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch
refs/changes/32/100332/1
diff --git a/SpecialMathIndex.php b/SpecialMathIndex.php
index 5f55c01..6d8ed94 100644
--- a/SpecialMathIndex.php
+++ b/SpecialMathIndex.php
@@ -48,10 +48,9 @@
)
)
);
- $htmlForm = new HTMLForm( $formDescriptor ); # We build the
HTMLForm object
+ $htmlForm = new HTMLForm( $formDescriptor, $this->getContext()
); # We build the HTMLForm object
$htmlForm->setSubmitText( 'Search' );
$htmlForm->setSubmitCallback( array( get_class($this) ,
'processInput' ) );
- $htmlForm->setTitle( $this->getTitle() );
$htmlForm->setHeaderText("<h2>Select script to run</h2>");
$htmlForm->show(); # Displaying the form
}
diff --git a/SpecialMathSearch.php b/SpecialMathSearch.php
index 6a5368f..9f8dfd0 100644
--- a/SpecialMathSearch.php
+++ b/SpecialMathSearch.php
@@ -85,10 +85,9 @@
$formDescriptor['textpattern']['disabled'] = true;
$formDescriptor['textpattern']['help'] = 'LuceneSearch
not found. Text search <b>disabled</b>!<br/> For details see <a
href=\"http://www.mediawiki.org/wiki/Extension:MWSearch\">MWSearch</a>.';
}
- $htmlForm = new HTMLForm($formDescriptor); # We build the
HTMLForm object
+ $htmlForm = new HTMLForm($formDescriptor, $this->getContext());
# We build the HTMLForm object
$htmlForm->setSubmitText('Search');
$htmlForm->setSubmitCallback(array(get_class($this),
'processInput'));
- $htmlForm->setTitle($this->getTitle());
$htmlForm->setHeaderText("<h2>Input</h2>");
$htmlForm->show(); # Displaying the form
}
--
To view, visit https://gerrit.wikimedia.org/r/100332
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27d1843b6dc380380b5b08b13cc566b22bac8172
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits