* @return string
*/
private function makeForm() {
- global $wgScript;
-
$form = Html::openElement( 'fieldset' ) . "\n";
$form .= Html::element(
'legend',
array(),
$this->msg( 'booksources-search-legend' )->text()
) . "\n";
- $form .= Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . "\n";
+ $form .= Html::openElement( 'form', array( 'method' => 'get', 'action' => wfScript() ) ) . "\n";
$form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ) . "\n";
$form .= '<p>' . Xml::inputLabel(
$this->msg( 'booksources-isbn' )->text(),
}
public function getStartForm( $from ) {
- global $wgScript;
-
return Xml::tags(
'form',
- array( 'method' => 'get', 'action' => $wgScript ),
+ array( 'method' => 'get', 'action' => wfScript() ),
Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
Xml::fieldset(
$this->msg( 'categories' )->text(),
* @return string HTML fragment
*/
protected function getForm() {
- global $wgScript;
-
$this->opts['title'] = $this->getPageTitle()->getPrefixedText();
if ( !isset( $this->opts['target'] ) ) {
$this->opts['target'] = '';
'form',
array(
'method' => 'get',
- 'action' => $wgScript,
+ 'action' => wfScript(),
'class' => 'mw-contributions-form'
)
);
}
function execute( $par ) {
- global $wgScript;
-
$this->setHeaders();
$this->outputHeader();
$out->addHTML(
Html::openElement(
'form',
- array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgScript )
+ array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => wfScript() )
) . "\n" .
Html::hidden( 'title', $this->getPageTitle()->getPrefixedDBkey() ) . "\n" .
Html::openElement( 'fieldset' ) . "\n" .