mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 07:50:24 +00:00
19 lines
480 B
PHP
19 lines
480 B
PHP
<?php
|
|
|
|
class AbuseFilterViewImport extends AbuseFilterView {
|
|
|
|
function show( ) {
|
|
global $wgOut;
|
|
|
|
$wgOut->addWikiMsg( 'abusefilter-import-intro' );
|
|
|
|
$html = Xml::textarea( 'wpImportText', '', 40, 20 );
|
|
$html .= Xml::submitButton( wfMsg( 'abusefilter-import-submit' ) );
|
|
$url = SpecialPage::getTitleFor( 'AbuseFilter', 'new' )->getFullURL();
|
|
|
|
$html = Xml::tags( 'form', array( 'method' => 'post', 'action' => $url ), $html );
|
|
|
|
$wgOut->addHTML( $html );
|
|
}
|
|
}
|