From: Jeroen De Dauw Date: Sun, 8 Aug 2010 22:05:49 +0000 (+0000) Subject: Follow up to r70661. Restored original behavior but with logical use of the boolean. X-Git-Tag: 1.31.0-rc.0~35594 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=4520d27316da79bb29df37433ab563289b8c49ad;p=lhc%2Fweb%2Fwiklou.git Follow up to r70661. Restored original behavior but with logical use of the boolean. --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 9759e828ce..f718e103f5 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -27,7 +27,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ class SpecialVersion extends SpecialPage { - private $firstExtOpened = true; + private $firstExtOpened = false; static $viewvcUrls = array( 'svn+ssh://svn.wikimedia.org/svnroot/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki', @@ -391,12 +391,12 @@ class SpecialVersion extends SpecialPage { $opt = array( 'colspan' => 4 ); $out = ''; - if( !$this->firstExtOpened ) { + if( $this->firstExtOpened ) { // Insert a spacing line $out .= '' . Html::element( 'td', $opt ) . "\n"; - $this->firstExtOpened = true; } - + $this->firstExtOpened = true; + if( $name ) { $opt['id'] = "sv-$name"; }