Use canonical casing for Xml::option (no code changes)
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 14 Dec 2013 02:16:35 +0000 (19:16 -0700)
committerIAlex <codereview@emsenhuber.ch>
Sat, 14 Dec 2013 11:46:32 +0000 (11:46 +0000)
Per Umherirrender.

Change-Id: I520d71cc9969fe823122565faea9e725f96972f4
Follow-up: d0c0bad56d8ff3fe

includes/ImagePage.php

index 05e1899..c73d72c 100644 (file)
@@ -991,7 +991,7 @@ EOT
                        } else {
                                $display = $code;
                        }
-                       $opts .= "\n" . XML::Option( $display, $code, $curLang === $code );
+                       $opts .= "\n" . Xml::option( $display, $code, $curLang === $code );
                        if ( $curLang === $code ) {
                                $haveCurrentLang = true;
                        }
@@ -1002,7 +1002,7 @@ EOT
                if ( !$haveDefaultLang ) {
                        // Its hard to know if the content is really in the default language, or
                        // if its just unmarked content that could be in any language.
-                       $opts = XML::Option( wfMessage( 'img-lang-default' )->text(), '', $defaultLang === $curLang ) . $opts;
+                       $opts = Xml::option( wfMessage( 'img-lang-default' )->text(), '', $defaultLang === $curLang ) . $opts;
                }
                if ( !$haveCurrentLang && $defaultLang !== $curLang ) {
                        $name = Language::fetchLanguageName( $curLang, $this->getContext()->getLanguage()->getCode() );
@@ -1011,7 +1011,7 @@ EOT
                        } else {
                                $display = $curLang;
                        }
-                       $opts = XML::Option( $display, $curLang, true ) . $opts;
+                       $opts = Xml::option( $display, $curLang, true ) . $opts;
                }
 
                $select = Html::rawElement( 'select', array( 'id' => 'mw-imglangselector', 'name' => 'lang' ), $opts );