mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Postgresql does not like modified prefix
This commit is contained in:
parent
55bcf883c3
commit
ba1ceab2f5
@ -12,7 +12,10 @@ function auth_user_login ($username, $password) {
|
||||
// two databases of the same kind ... it seems to get confused when trying to access
|
||||
// the first database again, after having accessed the second.
|
||||
// The following hack will make the database explicit which keeps it happy
|
||||
$CFG->prefix = "$CFG->dbname.$CFG->prefix";
|
||||
// This seems to broke postgesql so ..
|
||||
if ($CFG->dbtype != 'postgres7') {
|
||||
$CFG->prefix = "$CFG->dbname.$CFG->prefix";
|
||||
}
|
||||
|
||||
// Connect to the external database
|
||||
$authdb = &ADONewConnection($CFG->auth_dbtype);
|
||||
|
Loading…
x
Reference in New Issue
Block a user