r70443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70442‎ | r70443 | r70444 >
Date:00:29, 4 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
Fixing unclosed divs in CentralNotice
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
@@ -88,12 +88,14 @@
8989 if ( $sub == 'view' && $wgRequest->getVal( 'wpUserLanguage' ) == 'all' ) {
9090 $template = $wgRequest->getVal( 'template' );
9191 $this->showViewAvailable( $template );
 92+ $wgOut->addHTML( Xml::closeElement( 'div' ) );
9293 return;
9394 }
9495
9596 // Handle viewing a specific template
9697 if ( $sub == 'view' && $wgRequest->getText( 'template' ) != '' ) {
9798 $this->showView();
 99+ $wgOut->addHTML( Xml::closeElement( 'div' ) );
98100 return;
99101 }
100102
@@ -101,6 +103,7 @@
102104 // Handle "Add a banner" link
103105 if ( $sub == 'add' ) {
104106 $this->showAdd();
 107+ $wgOut->addHTML( Xml::closeElement( 'div' ) );
105108 return;
106109 }
107110

Status & tagging log