From: Sam Reed Date: Wed, 21 Sep 2011 16:34:23 +0000 (+0000) Subject: Comment out unreachable code X-Git-Tag: 1.31.0-rc.0~27501 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=27ec1d63779cd336c909e57c86ef8c3cf1e430c7;p=lhc%2Fweb%2Fwiklou.git Comment out unreachable code Remove unreachable return false; --- diff --git a/includes/Export.php b/includes/Export.php index 2b1a000519..1eab3d6580 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -480,10 +480,10 @@ class XmlDumpWriter { */ function closePage() { return " \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) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 0c3a996020..2abc3d2b05 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -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; }