Comment out unreachable code
authorSam Reed <reedy@users.mediawiki.org>
Wed, 21 Sep 2011 16:34:23 +0000 (16:34 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 21 Sep 2011 16:34:23 +0000 (16:34 +0000)
Remove unreachable return false;

includes/Export.php
includes/WebRequest.php

index 2b1a000..1eab3d6 100644 (file)
@@ -480,10 +480,10 @@ class XmlDumpWriter {
         */
        function closePage() {
                return "  </page>\n";
-               if ( !$this->firstPageWritten ) {
-                       $this->firstPageWritten = $this->pageInProgress;
-               }
-               $this->lastPageWritten = $this->pageInProgress;
+               //if ( !$this->firstPageWritten ) {
+               //      $this->firstPageWritten = $this->pageInProgress;
+               //}
+               //$this->lastPageWritten = $this->pageInProgress;
        }
 
        /**
@@ -711,7 +711,7 @@ class DumpOutput {
 
        /**
         * Close the old file, and move it to a specified name.
-        * Use this for the last piece of a file written out 
+        * Use this for the last piece of a file written out
         * at specified checkpoints (e.g. every n hours).
         * @param $newname mixed File name. May be a string or an array with one element
         * @param $open bool If true, a new file with the old filename will be opened again for writing (default: false)
index 0c3a996..2abc3d2 100644 (file)
@@ -876,8 +876,6 @@ class WebRequest {
                        }
                        throw new HttpError( 403,
                                'Invalid file extension found in the path info or query string.' );
-
-                       return false;
                }
                return true;
        }