mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-24 14:34:06 +00:00
Declare functions with access modifiers
Change-Id: Ib7180f15a1c7c4a40cea9c2eedc318ed26f1edab
This commit is contained in:
parent
3a31d027e8
commit
78dc23cc6f
|
@ -110,7 +110,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
/**
|
/**
|
||||||
* @param $action string
|
* @param $action string
|
||||||
*/
|
*/
|
||||||
function showForm( $action ) {
|
protected function showForm( $action ) {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$prefix = $request->getVal( 'prefix' );
|
$prefix = $request->getVal( 'prefix' );
|
||||||
|
@ -219,7 +219,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
$this->getOutput()->addHTML( $form );
|
$this->getOutput()->addHTML( $form );
|
||||||
}
|
}
|
||||||
|
|
||||||
function doSubmit() {
|
protected function doSubmit() {
|
||||||
global $wgContLang;
|
global $wgContLang;
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
@ -302,7 +302,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showList() {
|
protected function showList() {
|
||||||
global $wgInterwikiCentralDB, $wgInterwikiViewOnly;
|
global $wgInterwikiCentralDB, $wgInterwikiViewOnly;
|
||||||
$canModify = $this->canModify();
|
$canModify = $this->canModify();
|
||||||
|
|
||||||
|
@ -418,7 +418,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeTable( $canModify, $iwPrefixes ) {
|
protected function makeTable( $canModify, $iwPrefixes ) {
|
||||||
// Output the existing Interwiki prefixes table header
|
// Output the existing Interwiki prefixes table header
|
||||||
$out = '';
|
$out = '';
|
||||||
$out .= Html::openElement(
|
$out .= Html::openElement(
|
||||||
|
@ -490,7 +490,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
$this->getOutput()->addHTML( $out );
|
$this->getOutput()->addHTML( $out );
|
||||||
}
|
}
|
||||||
|
|
||||||
function error() {
|
protected function error() {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
$this->getOutput()->wrapWikiMsg( "<p class='error'>$1</p>", $args );
|
$this->getOutput()->wrapWikiMsg( "<p class='error'>$1</p>", $args );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue