X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLCheckField.php;h=9a956fbf1e2f933050c6793fb4fd524d83a374fa;hp=a553839b09ded0ed75c163d1f333f65ddbf0d7b4;hb=d6551bcbad8e2c0c94af630212433150ac7ff841;hpb=356b3420d6908f91510aa0cd94f3a363be7f8999 diff --git a/includes/htmlform/fields/HTMLCheckField.php b/includes/htmlform/fields/HTMLCheckField.php index a553839b09..9a956fbf1e 100644 --- a/includes/htmlform/fields/HTMLCheckField.php +++ b/includes/htmlform/fields/HTMLCheckField.php @@ -4,7 +4,7 @@ * A checkbox field */ class HTMLCheckField extends HTMLFormField { - function getInputHTML( $value ) { + public function getInputHTML( $value ) { global $wgUseMediaWikiUIEverywhere; if ( !empty( $this->mParams['invert'] ) ) { @@ -52,7 +52,7 @@ class HTMLCheckField extends HTMLFormField { $value = !$value; } - $attr = $this->getTooltipAndAccessKey(); + $attr = $this->getTooltipAndAccessKeyOOUI(); $attr['id'] = $this->mID; $attr['name'] = $this->mName; @@ -79,7 +79,7 @@ class HTMLCheckField extends HTMLFormField { * * @return string */ - function getLabel() { + public function getLabel() { if ( $this->mParent instanceof OOUIHTMLForm ) { return $this->mLabel; } elseif ( @@ -113,7 +113,7 @@ class HTMLCheckField extends HTMLFormField { * * @return bool */ - function loadDataFromRequest( $request ) { + public function loadDataFromRequest( $request ) { $invert = isset( $this->mParams['invert'] ) && $this->mParams['invert']; // GetCheck won't work like we want for checks.