Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug engine/database.php (Trac #2474) #2474

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 2 comments
Closed

Possible bug engine/database.php (Trac #2474) #2474

elgg-gitbot opened this issue Feb 16, 2013 · 2 comments
Labels
Milestone

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/2474 on 40709044-07-12 by trac user javigs, assigned to unknown.

Elgg version: 1.7

Function establish_db_link:

line: if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))[[BR]]
should be:
if (!$dblink[$dblinkname] = mysql_connect($dbhost, $dbuser, $dbpass, true))[[BR]]

and
line: if (!mysql_select_db($CONFIG->dbname, $dblink[$dblinkname]))[[BR]]
should be:
if (!mysql_select_db($dbname, $dblink[$dblinkname]))

With these changes should work read & write with different connection parameters.

@elgg-gitbot
Copy link
Author

cash wrote on 40746099-01-10

Thanks for this bug report. It has been fixed in revision [svn:6976].

@elgg-gitbot
Copy link
Author

cash wrote on 40803562-01-21

(In [svn:7103]) Refs #2474 - merged [svn:6976] from 1.7 branch into trunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant