diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/RawPage.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'includes/RawPage.php')
-rw-r--r-- | includes/RawPage.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/RawPage.php b/includes/RawPage.php index 909c300b..b1e2539a 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -7,6 +7,7 @@ * License: GPL (http://www.gnu.org/copyleft/gpl.html) * * @author Gabriel Wicke <wicke@wikidev.net> + * @file */ /** @@ -35,7 +36,7 @@ class RawPage { $ctype = $this->mRequest->getVal( 'ctype' ); $smaxage = $this->mRequest->getIntOrNull( 'smaxage', $wgSquidMaxage ); $maxage = $this->mRequest->getInt( 'maxage', $wgSquidMaxage ); - + $this->mExpandTemplates = $this->mRequest->getVal( 'templates' ) === 'expand'; $this->mUseMessageCache = $this->mRequest->getBool( 'usemsgcache' ); @@ -66,7 +67,7 @@ class RawPage { break; } $this->mOldId = $oldid; - + # special case for 'generated' raw things: user css/js $gen = $this->mRequest->getVal( 'gen' ); @@ -82,7 +83,7 @@ class RawPage { $this->mGen = false; } $this->mCharset = $wgInputEncoding; - + # Force caching for CSS and JS raw content, default: 5 minutes if (is_null($smaxage) and ($ctype=='text/css' or $ctype==$wgJsMimeType)) { $this->mSmaxage = intval($wgForcedRawSMaxage); @@ -90,8 +91,8 @@ class RawPage { $this->mSmaxage = intval( $smaxage ); } $this->mMaxage = $maxage; - - # Output may contain user-specific data; + + # Output may contain user-specific data; # vary generated content for open sessions and private wikis if ($this->mGen or !$wgGroupPermissions['*']['read']) { $this->mPrivateCache = ( $this->mSmaxage == 0 ) || @@ -99,7 +100,7 @@ class RawPage { } else { $this->mPrivateCache = false; } - + if ( $ctype == '' or ! in_array( $ctype, $allowedCTypes ) ) { $this->mContentType = 'text/x-wiki'; } else { @@ -125,7 +126,7 @@ class RawPage { } else { $url = $_SERVER['PHP_SELF']; } - + if( strcmp( $wgScript, $url ) ) { # Internet Explorer will ignore the Content-Type header if it # thinks it sees a file extension it recognizes. Make sure that @@ -210,7 +211,7 @@ class RawPage { # have the pages. header( "HTTP/1.0 404 Not Found" ); } - + // Special-case for empty CSS/JS // // Internet Explorer for Mac handles empty files badly; @@ -224,7 +225,7 @@ class RawPage { $this->mContentType == 'text/javascript' ) ) { return "/* Empty */"; } - + return $this->parseArticleText( $text ); } @@ -239,4 +240,3 @@ class RawPage { return $text; } } - |