Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't assume html

  • Loading branch information...
commit 08b21b4e1745c7640f77fb57c81f1a15e25ef103 1 parent cad94a1
@AD7six AD7six authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 views/helpers/html_cache_base.php
View
9 views/helpers/html_cache_base.php
@@ -85,7 +85,7 @@ public function afterLayout() {
if($path !== '') {
$path = DS . ltrim($path, DS);
}
-
+
$host = '';
if($this->options['domain']) {
if (!empty($_SERVER['HTTP_HOST'])) {
@@ -94,8 +94,11 @@ public function afterLayout() {
$host = DS . $this->options['host'];
}
}
-
- $path = $this->options['www_root'] . 'cache' . $host . $path . DS . 'index.html';
+
+ $path = $this->options['www_root'] . 'cache' . $host . $path;
+ if ($view->params['url']['ext'] === 'html') {
+ $path .= DS . 'index.html';
+ }
$file = new File($path, true);
$file->write($view->output);
}
Please sign in to comment.
Something went wrong with that request. Please try again.