Index: trunk/extensions/ListChangedArticles/ListChangedArticles_body.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | $attribs["title"] = $t->getDBkey() ; |
50 | 50 | $attribs["namespace_id"] = $obj->page_namespace ; |
51 | 51 | $attribs["namespace_name"] = $wgLang->getNsText ( $obj->page_namespace ) ; |
52 | | - $ret .= wfElement ( "article" , $attribs ) ; |
| 52 | + $ret .= Xml::element( "article" , $attribs ) ; |
53 | 53 | } |
54 | 54 | |
55 | 55 | $ret .= "</articlelist>" ; |
Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc |
— | — | @@ -517,8 +517,7 @@ |
518 | 518 | * Helper function to display a simple button |
519 | 519 | */ |
520 | 520 | static function buttonHTML($values) { |
521 | | - // for backwards-compatibility with pre-1.13 MW |
522 | | - $button_html = function_exists("Xml::element") ? Xml::element('input', $values, '') : wfElement('input', $values, ''); |
| 521 | + $button_html = Xml::element('input', $values, ''); |
523 | 522 | return " $button_html\n"; |
524 | 523 | } |
525 | 524 | |
Index: trunk/extensions/MiniPreview/MiniPreview.php |
— | — | @@ -146,14 +146,14 @@ |
147 | 147 | 'style' => "width:{$wgMiniPreviewThumbnailSize}px;height:{$wgMiniPreviewThumbnailSize}px;", |
148 | 148 | 'class' => 'MiniPreview_count' )); |
149 | 149 | $html .= wfMsgExt( 'minipreview-files_in_'.$mode , array( 'parsemag' ), $p->image_count ); |
150 | | - $html .= wfCloseElement ( "div" ) ; |
151 | | - $html .= wfCloseElement ( "td" ) ; |
152 | | - $html .= wfCloseElement ( "tr" ) ; |
153 | | - $html .= wfCloseElement ( "table" ) ; |
154 | | - $html .= wfCloseElement ( "div" ) ; |
| 150 | + $html .= Xml::closeElement( "div" ) ; |
| 151 | + $html .= Xml::closeElement( "td" ) ; |
| 152 | + $html .= Xml::closeElement( "tr" ) ; |
| 153 | + $html .= Xml::closeElement( "table" ) ; |
| 154 | + $html .= Xml::closeElement( "div" ) ; |
155 | 155 | } |
156 | 156 | } |
157 | | - $html .= wfCloseElement ( "div" ) ; |
| 157 | + $html .= Xml::closeElement( "div" ) ; |
158 | 158 | $output->addHTML( $html ); |
159 | 159 | |
160 | 160 | return true; |
— | — | @@ -200,9 +200,9 @@ |
201 | 201 | $image_url = $image_data[$entry->title]->getTitle()->getLocalURL(); |
202 | 202 | $image_name = $image_data[$entry->title]->getTitle()->getText(); |
203 | 203 | |
204 | | - $ret .= wfOpenElement ( 'a' , array ( 'href' => $image_url )); |
205 | | - $ret .= wfElement ( 'img' , array ( 'border' => '0', 'style' => $style, 'src' => $thumb_url , 'alt' => $image_name )); |
206 | | - $ret .= wfCloseElement ( 'a' ); |
| 204 | + $ret .= Xml::openElement( 'a' , array ( 'href' => $image_url )); |
| 205 | + $ret .= Xml::element( 'img' , array ( 'border' => '0', 'style' => $style, 'src' => $thumb_url , 'alt' => $image_name )); |
| 206 | + $ret .= Xml::closeElement ( 'a' ); |
207 | 207 | } else { # No such file |
208 | 208 | $ret .= wfMsg ( 'minipreview-no_more_files_here' ) ; |
209 | 209 | } |