diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-15 18:39:43 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-15 18:39:43 +0000 |
commit | 08c15eb0ea401bfd70c2bbc0b82954f8cdc590e5 (patch) | |
tree | 5b3308a58d6bb05131825ba3e26dedec93941721 | |
parent | eb6751aaf69275c75cb7fa1382e18de0a1230b71 (diff) | |
download | elgg-08c15eb0ea401bfd70c2bbc0b82954f8cdc590e5.tar.gz elgg-08c15eb0ea401bfd70c2bbc0b82954f8cdc590e5.tar.bz2 |
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
-rw-r--r-- | mod/profile/icondirect.php | 4 | ||||
-rw-r--r-- | simplecache/view.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/profile/icondirect.php b/mod/profile/icondirect.php index 5ac9ee150..2a14c6f8a 100644 --- a/mod/profile/icondirect.php +++ b/mod/profile/icondirect.php @@ -45,7 +45,7 @@ $contents = '';
- if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {
+ if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) {
$username = $_GET['username'];
@@ -130,4 +130,4 @@ set_input('size',$size);
require_once(dirname(__FILE__).'/icon.php');
}
-?>
\ No newline at end of file +?> 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 +?> |