Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -68,8 +68,9 @@ |
69 | 69 | $wgHooks['TestCanonicalRedirect'][] = array( &$wgExtMobileFrontend, 'testCanonicalRedirect' ); |
70 | 70 | |
71 | 71 | /** |
72 | | - * Make the classes stripped from page content configurable. Each item will |
73 | | - * be stripped from the page. See $itemsToRemove for more info |
| 72 | + * Make the classes, tags and ids stripped from page content configurable. |
| 73 | + * Each item will be stripped from the page. |
| 74 | + * See $itemsToRemove for more information. |
74 | 75 | */ |
75 | 76 | $wgMFRemovableClasses = array(); |
76 | 77 | |
— | — | @@ -87,7 +88,7 @@ |
88 | 89 | } |
89 | 90 | |
90 | 91 | class ExtMobileFrontend { |
91 | | - const VERSION = '0.5.85'; |
| 92 | + const VERSION = '0.5.86'; |
92 | 93 | |
93 | 94 | /** |
94 | 95 | * @var DOMDocument |
— | — | @@ -1075,9 +1076,6 @@ |
1076 | 1077 | */ |
1077 | 1078 | public function renderLogin() { |
1078 | 1079 | wfProfileIn( __METHOD__ ); |
1079 | | - $username = self::$messages['mobile-frontend-username']; |
1080 | | - $password = self::$messages['mobile-frontend-password']; |
1081 | | - $login = self::$messages['mobile-frontend-login']; |
1082 | 1080 | $form = Html::openElement( 'form', |
1083 | 1081 | array( 'name' => 'userlogin', |
1084 | 1082 | 'method' => 'post', |
— | — | @@ -1089,7 +1087,7 @@ |
1090 | 1088 | Html::openElement( 'td', |
1091 | 1089 | array( 'class' => 'mw-label' ) ) . |
1092 | 1090 | Html::element( 'label', |
1093 | | - array( 'for' => 'wpName1' ), $username ) . |
| 1091 | + array( 'for' => 'wpName1' ), self::$messages['mobile-frontend-username'] ) . |
1094 | 1092 | Html::closeElement( 'td' ) . |
1095 | 1093 | Html::closeElement( 'tr' ) . |
1096 | 1094 | Html::openElement( 'tr' ) . |
— | — | @@ -1106,7 +1104,7 @@ |
1107 | 1105 | Html::openElement( 'td', |
1108 | 1106 | array( 'class' => 'mw-label' ) ) . |
1109 | 1107 | Html::element( 'label', |
1110 | | - array( 'for' => 'wpPassword1' ), $password ) . |
| 1108 | + array( 'for' => 'wpPassword1' ), self::$messages['mobile-frontend-password'] ) . |
1111 | 1109 | Html::closeElement( 'td' ) . |
1112 | 1110 | Html::closeElement( 'tr' ) . |
1113 | 1111 | Html::openElement( 'tr' ) . |
— | — | @@ -1125,7 +1123,7 @@ |
1126 | 1124 | Html::openElement( 'tr' ) . |
1127 | 1125 | Html::openElement( 'td', |
1128 | 1126 | array( 'class' => 'mw-submit' ) ) . |
1129 | | - Html::input( 'wpLoginAttempt', $login, 'submit', |
| 1127 | + Html::input( 'wpLoginAttempt', self::$messages['mobile-frontend-login'], 'submit', |
1130 | 1128 | array( 'id' => 'wpLoginAttempt', |
1131 | 1129 | 'tabindex' => '3') ) . |
1132 | 1130 | Html::closeElement( 'td' ) . |