Merge "mediawiki.api: Do not cache errors in getToken()"
[lhc/web/wiklou.git] / includes / filebackend / FSFile.php
index 3a0aa97..4575e7c 100644 (file)
@@ -30,26 +30,22 @@ class FSFile {
        /** @var string Path to file */
        protected $path;
 
-       /** @var string File SHA-1 in base 36  */
+       /** @var string File SHA-1 in base 36 */
        protected $sha1Base36;
 
        /**
         * Sets up the file object
         *
         * @param string $path Path to temporary file on local disk
-        * @throws MWException
         */
        public function __construct( $path ) {
-               if ( FileBackend::isStoragePath( $path ) ) {
-                       throw new MWException( __METHOD__ . " given storage path `$path`." );
-               }
                $this->path = $path;
        }
 
        /**
         * Returns the file system path
         *
-        * @return String
+        * @return string
         */
        public function getPath() {
                return $this->path;