Simplify type check
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 16:04:13 +0000 (16:04 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 16:04:13 +0000 (16:04 +0000)
includes/HTMLFileCache.php

index 5e42389..833d718 100644 (file)
@@ -24,7 +24,6 @@ class HTMLFileCache {
 
        public function __construct( &$title, $type = 'view' ) {
                $this->mTitle = $title;
-               $type = $type ? $type : 'view';
                $this->mType = ($type == 'raw' || $type == 'view' ) ? $type : false;
                $this->fileCacheName(); // init name
        }