diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-03 13:10:07 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-03 13:10:07 +0000 |
commit | 61cf6daf4860276e4b39fbb7720f5dd520fba2ff (patch) | |
tree | a1c51af7cfe96d7220ac71b9172eb8da74432a78 /simplecache | |
parent | 74717c8c3ed04c5df7ca8729dae20f5660af573e (diff) | |
download | elgg-61cf6daf4860276e4b39fbb7720f5dd520fba2ff.tar.gz elgg-61cf6daf4860276e4b39fbb7720f5dd520fba2ff.tar.bz2 |
A quiet little CSS override update.
git-svn-id: https://code.elgg.org/elgg/trunk@3030 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'simplecache')
-rw-r--r-- | simplecache/view.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/simplecache/view.php b/simplecache/view.php index 47bf9e8e4..626ac8bac 100644 --- a/simplecache/view.php +++ b/simplecache/view.php @@ -15,7 +15,8 @@ // Get DB settings, connect
require_once(dirname(dirname(__FILE__)). '/engine/settings.php');
- global $CONFIG, $viewinput;
+ global $CONFIG, $viewinput, $override;
+ if (!isset($override)) $override = true;
$contents = '';
if (!isset($viewinput)) $viewinput = $_GET;
@@ -44,7 +45,7 @@ }
}
- if ($simplecache_enabled) {
+ if ($simplecache_enabled || $override) {
$filename = $dataroot . 'views_simplecache/' . md5($viewtype . $view);
if (file_exists($filename))
$contents = @file_get_contents($filename);
|