summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-07-05 11:45:51 +0000
committerDries Buytaert <dries@buytaert.net>2006-07-05 11:45:51 +0000
commite93f8be8716fd35a9ad6fc3453548a8c9e5d32e8 (patch)
tree4617ae5665c77c07c54b1dfbc9722de0727adef5 /includes/bootstrap.inc
parent59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94 (diff)
downloadbrdo-e93f8be8716fd35a9ad6fc3453548a8c9e5d32e8.tar.gz
brdo-e93f8be8716fd35a9ad6fc3453548a8c9e5d32e8.tar.bz2
- Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index b192cbbf7..ba7ab0a03 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -399,7 +399,7 @@ function drupal_page_header() {
$none_match = !empty($_SERVER['HTTP_IF_NONE_MATCH']) ? $_SERVER['HTTP_IF_NONE_MATCH'] == $etag : NULL;
// The type checking here is very important, be careful when changing entries.
- if (($modified_since !== NULL || $none_match !== NULL) && $modified_since !== false && $none_match !== false) {
+ if (($modified_since !== NULL || $none_match !== NULL) && $modified_since !== FALSE && $none_match !== FALSE) {
header('HTTP/1.0 304 Not Modified');
exit();
}
@@ -409,7 +409,7 @@ function drupal_page_header() {
header("ETag: $etag");
// Determine if the browser accepts gzipped data.
- if (@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === false && function_exists('gzencode')) {
+ if (@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === FALSE && function_exists('gzencode')) {
// Strip the gzip header and run uncompress.
$cache->data = gzinflate(substr(substr($cache->data, 10), 0, -8));
}
@@ -433,7 +433,7 @@ function drupal_page_header() {
header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Cache-Control: post-check=0, pre-check=0", false);
+ header("Cache-Control: post-check=0, pre-check=0", FALSE);
header("Pragma: no-cache");
}
}