Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | } |
89 | 89 | |
90 | 90 | class ExtMobileFrontend { |
91 | | - const VERSION = '0.5.79'; |
| 91 | + const VERSION = '0.5.80'; |
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @var DOMDocument |
— | — | @@ -1088,6 +1088,7 @@ |
1089 | 1089 | * @return DomElement |
1090 | 1090 | */ |
1091 | 1091 | public function renderLogin() { |
| 1092 | + wfProfileIn( __METHOD__ ); |
1092 | 1093 | $username = self::$messages['mobile-frontend-username']; |
1093 | 1094 | $password = self::$messages['mobile-frontend-password']; |
1094 | 1095 | $login = self::$messages['mobile-frontend-login']; |
— | — | @@ -1147,6 +1148,7 @@ |
1148 | 1149 | Html::closeElement( 'table' ) . |
1149 | 1150 | Html::input( 'wpLoginToken', self::$wsLoginToken, 'hidden' ) . |
1150 | 1151 | Html::closeElement( 'form' ); |
| 1152 | + wfProfileOut( __METHOD__ ); |
1151 | 1153 | return $this->getDomDocumentNodeByTagName( $form, 'form' ); |
1152 | 1154 | } |
1153 | 1155 | |
— | — | @@ -1156,6 +1158,7 @@ |
1157 | 1159 | * @return DomElement |
1158 | 1160 | */ |
1159 | 1161 | private function getDomDocumentNodeByTagName( $html, $tagName ) { |
| 1162 | + wfProfileIn( __METHOD__ ); |
1160 | 1163 | libxml_use_internal_errors( true ); |
1161 | 1164 | $dom = new DOMDocument(); |
1162 | 1165 | $dom->loadHTML( $html ); |
— | — | @@ -1164,6 +1167,7 @@ |
1165 | 1168 | $dom->strictErrorChecking = false; |
1166 | 1169 | $dom->encoding = 'UTF-8'; |
1167 | 1170 | $node = $dom->getElementsByTagName( $tagName )->item(0); |
| 1171 | + wfProfileOut( __METHOD__ ); |
1168 | 1172 | return $node; |
1169 | 1173 | } |
1170 | 1174 | |