From 61cf6daf4860276e4b39fbb7720f5dd520fba2ff Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 3 Mar 2009 13:10:07 +0000 Subject: A quiet little CSS override update. git-svn-id: https://code.elgg.org/elgg/trunk@3030 36083f99-b078-4883-b0ff-0f9b5a30f544 --- simplecache/view.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'simplecache') 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); -- cgit v1.2.3