Commit fd532c06 authored by mikeytown2's avatar mikeytown2

Issue #1071942 by 1V: fix typo in database variables for Boost comments.

parent b2e2aad9
......@@ -214,11 +214,11 @@ function boost_exit($destination = NULL) {
}
// Add note to bottom of content if possible.
if ($_boost['matched_header_info']['commment_start'] && $_boost['matched_header_info']['commment_end']) {
if ($_boost['matched_header_info']['comment_start'] && $_boost['matched_header_info']['comment_end']) {
$expire = $_boost['matched_header_info']['lifetime_max'];
$cached_at = date('Y-m-d H:i:s', REQUEST_TIME);
$expires_at = date('Y-m-d H:i:s', REQUEST_TIME + $expire);
$note = "\n" . $_boost['matched_header_info']['commment_start'] . 'Page cached by Boost @ ' . $cached_at . ', expires @ ' . $expires_at . ', lifetime ' . format_interval($expire) . $_boost['matched_header_info']['commment_end'];
$note = "\n" . $_boost['matched_header_info']['comment_start'] . 'Page cached by Boost @ ' . $cached_at . ', expires @ ' . $expires_at . ', lifetime ' . format_interval($expire) . $_boost['matched_header_info']['comment_end'];
$data .= $note;
}
......@@ -840,8 +840,8 @@ function boost_match_header_attributes($header_info) {
'extension',
'lifetime_max',
'lifetime_min',
'commment_start',
'commment_end',
'comment_start',
'comment_end',
);
$info = array();
foreach ($keys as $key) {
......@@ -903,8 +903,8 @@ function boost_get_storage_types() {
'gzip',
'lifetime_max',
'lifetime_min',
'commment_start',
'commment_end',
'comment_start',
'comment_end',
);
foreach ($types as $title => $content_types) {
......@@ -938,8 +938,8 @@ function boost_boost_storage_types() {
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'commment_start' => '<!-- ',
'commment_end' => ' -->',
'comment_start' => '<!-- ',
'comment_end' => ' -->',
'variants' => array(),
);
$types['text/xml'] = array(
......@@ -950,8 +950,8 @@ function boost_boost_storage_types() {
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'commment_start' => '<!-- ',
'commment_end' => ' -->',
'comment_start' => '<!-- ',
'comment_end' => ' -->',
'variants' => array(
'application/xml',
'application/rss',
......@@ -966,8 +966,8 @@ function boost_boost_storage_types() {
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'commment_start' => '/* ',
'commment_end' => ' */',
'comment_start' => '/* ',
'comment_end' => ' */',
'variants' => array(),
);
return $types;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment