set ctype in any case for gen
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 9 Jun 2004 13:43:26 +0000 (13:43 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 9 Jun 2004 13:43:26 +0000 (13:43 +0000)
includes/RawPage.php

index 6705b83..3d99586 100644 (file)
@@ -23,11 +23,11 @@ class RawPage {
                if($gen == 'css') {
                        $this->mGen = $gen;
                        if($smaxage == '') $smaxage = $wgSquidMaxage;
-                       if(empty($ctype)) $ctype = 'text/css';
+                       if($ctype == '') $ctype = 'text/css';
                } else if ($gen == 'js') {
                        $this->mGen = $gen;
                        if($smaxage == '') $smaxage = $wgSquidMaxage;
-                       if(empty($ctype)) $ctype = 'text/javascript';
+                       if($ctype == '') $ctype = 'text/javascript';
                } else {
                        $this->mGen = false;
                }