Follow up to r70661. Restored original behavior but with logical use of the boolean.
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Sun, 8 Aug 2010 22:05:49 +0000 (22:05 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Sun, 8 Aug 2010 22:05:49 +0000 (22:05 +0000)
includes/specials/SpecialVersion.php

index 9759e82..f718e10 100644 (file)
@@ -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 .= '<tr class="sv-space">' . Html::element( 'td', $opt ) . "</tr>\n";
-                       $this->firstExtOpened = true;
                }
-
+               $this->firstExtOpened = true;
+               
                if( $name ) {
                        $opt['id'] = "sv-$name";
                }