]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Forcing a new db connect for simplecache/view.php and mod/profile/icondirect.php
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 15 Jul 2009 18:39:43 +0000 (18:39 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 15 Jul 2009 18:39:43 +0000 (18:39 +0000)
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

mod/profile/icondirect.php
simplecache/view.php

index 5ac9ee150437f859588cd48001f8db1592c9332a..2a14c6f8a4b26a9ddde436c1e3d31c6a6e9b25bb 100644 (file)
@@ -45,7 +45,7 @@
                        \r
                $contents = '';\r
                \r
-               if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {\r
+               if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) {\r
 \r
                        \r
                        $username = $_GET['username'];\r
                                set_input('size',$size);\r
                                require_once(dirname(__FILE__).'/icon.php');\r
                }\r
-?>
\ No newline at end of file
+?>
index 3bb621036e1c76e21136d212f9685ed032a75fda..1fae66a298f8c6185b1e713f04c5544b1f95f078 100644 (file)
@@ -21,7 +21,7 @@
                $contents = '';\r
                if (!isset($viewinput)) $viewinput = $_GET;\r
                \r
-               if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {\r
+               if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) {\r
 \r
                        $view = $viewinput['view'];\r
                        $viewtype = $viewinput['viewtype'];\r
@@ -70,4 +70,4 @@
                echo $chunk; \r
 
 \r
-?>
\ No newline at end of file
+?>