Delete unused variable
authorJakub Vrana <jakub@vrana.cz>
Sun, 2 Dec 2018 18:21:44 +0000 (19:21 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sun, 2 Dec 2018 18:21:44 +0000 (19:21 +0100)
Found by PHPStan.

Change-Id: I416069e4199e1cd3cf7a98a32cc1cb09c1525093

includes/specials/SpecialExport.php

index 513e7a9..ef61ac5 100644 (file)
@@ -378,7 +378,6 @@ class SpecialExport extends SpecialPage {
                }
 
                /* Ok, let's get to it... */
-               $lb = false;
                $db = wfGetDB( DB_REPLICA );
 
                $exporter = new WikiExporter( $db, $history );
@@ -406,10 +405,6 @@ class SpecialExport extends SpecialPage {
                }
 
                $exporter->closeStream();
-
-               if ( $lb ) {
-                       $lb->closeAll();
-               }
        }
 
        /**