Fix typo for system message name
[lhc/web/wiklou.git] / includes / specials / SpecialBlockList.php
index f1992c0..4c9a682 100644 (file)
@@ -37,7 +37,7 @@ class SpecialBlockList extends SpecialPage {
        /**
         * Main execution point
         *
-        * @param string $par title fragment
+        * @param string $par Title fragment
         */
        public function execute( $par ) {
                $this->setHeaders();
@@ -67,7 +67,7 @@ class SpecialBlockList extends SpecialPage {
                $fields = array(
                        'Target' => array(
                                'type' => 'text',
-                               'label-message' => 'ipadressorusername',
+                               'label-message' => 'ipaddressorusername',
                                'tabindex' => '1',
                                'size' => '45',
                                'default' => $this->target,
@@ -97,7 +97,7 @@ class SpecialBlockList extends SpecialPage {
                        ),
                );
                $context = new DerivativeContext( $this->getContext() );
-               $context->setTitle( $this->getTitle() ); // Remove subpage
+               $context->setTitle( $this->getPageTitle() ); // Remove subpage
                $form = new HTMLForm( $fields, $context );
                $form->setMethod( 'get' );
                $form->setWrapperLegendMsg( 'ipblocklist-legend' );
@@ -217,8 +217,8 @@ class BlockListPager extends TablePager {
        protected $page;
 
        /**
-        * @param $page SpecialPage
-        * @param $conds Array
+        * @param SpecialPage $page
+        * @param array $conds
         */
        function __construct( $page, $conds ) {
                $this->page = $page;
@@ -230,7 +230,7 @@ class BlockListPager extends TablePager {
        function getFieldNames() {
                static $headers = null;
 
-               if ( $headers == array() ) {
+               if ( $headers === null ) {
                        $headers = array(
                                'ipb_timestamp' => 'blocklist-timestamp',
                                'ipb_target' => 'blocklist-target',
@@ -455,16 +455,14 @@ class BlockListPager extends TablePager {
 
 /**
  * Items per page dropdown. Essentially a crap workaround for bug 32603.
- *
- * @todo Do not release 1.19 with this.
  */
 class HTMLBlockedUsersItemSelect extends HTMLSelectField {
        /**
         * Basically don't do any validation. If it's a number that's fine. Also,
         * add it to the list if it's not there already
         *
-        * @param $value
-        * @param $alldata
+        * @param string $value
+        * @param array $alldata
         * @return bool
         */
        function validate( $value, $alldata ) {