From 08c15eb0ea401bfd70c2bbc0b82954f8cdc590e5 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 15 Jul 2009 18:39:43 +0000 Subject: Forcing a new db connect for simplecache/view.php and mod/profile/icondirect.php Will avoid bugs if a previous connection has been created. git-svn-id: https://code.elgg.org/elgg/trunk@3404 36083f99-b078-4883-b0ff-0f9b5a30f544 --- simplecache/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simplecache/view.php') diff --git a/simplecache/view.php b/simplecache/view.php index 3bb621036..1fae66a29 100644 --- a/simplecache/view.php +++ b/simplecache/view.php @@ -21,7 +21,7 @@ $contents = ''; if (!isset($viewinput)) $viewinput = $_GET; - if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) { + if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) { $view = $viewinput['view']; $viewtype = $viewinput['viewtype']; @@ -70,4 +70,4 @@ echo $chunk; -?> \ No newline at end of file +?> -- cgit v1.2.3