Fix and add some comments.
authorRuss Nelson <nelson@users.mediawiki.org>
Mon, 2 May 2011 18:48:35 +0000 (18:48 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Mon, 2 May 2011 18:48:35 +0000 (18:48 +0000)
includes/filerepo/LocalFile.php
includes/filerepo/OldLocalFile.php
thumb.php

index 723c253..a24b5c3 100644 (file)
@@ -33,7 +33,7 @@ class LocalFile extends File {
         * @private
         */
        var
-               $fileExists,       # does the file file exist on disk? (loadFromXxx)
+               $fileExists,       # does the file exist on disk? (loadFromXxx)
                $historyLine,      # Number of line to return by nextHistoryLine() (constructor)
                $historyRes,       # result of the query for the file's history (nextHistoryLine)
                $width,            # \
@@ -549,8 +549,8 @@ class LocalFile extends File {
        /** isTrustedFile inherited */
 
        /**
-        * Returns true if the file file exists on disk.
-        * @return boolean Whether file file exist on disk.
+        * Returns true if the file exists on disk.
+        * @return boolean Whether file exist on disk.
         */
        public function exists() {
                $this->load();
index 544d3de..d921a6b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Old file in the in the oldimage table
+ * Old file in the oldimage table
  *
  * @file
  * @ingroup FileRepo
index 1a1dee4..30b6159 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -41,7 +41,7 @@ function wfThumbMain() {
        if ( isset( $params['p'] ) ) {
                $params['page'] = $params['p'];
        }
-       unset( $params['r'] );
+       unset( $params['r'] ); // ignore 'r' because we unconditionally pass File::RENDER
 
        // Is this a thumb of an archived file?
        $isOld = (isset( $params['archived'] ) && $params['archived']);