| @@ 414-415 (lines=2) @@ | ||
| 411 | $index = $serveur ? strtolower($serveur) : 0; |
|
| 412 | ||
| 413 | if ($link = spip_connect_db('', '', '', '', $db, 'pg', '', '')){ |
|
| 414 | if (($db==$link['db']) && $GLOBALS['connexions'][$index] = $link) |
|
| 415 | return $db; |
|
| 416 | } else |
|
| 417 | return false; |
|
| 418 | } |
|
| @@ 955-956 (lines=2) @@ | ||
| 952 | $index = $serveur ? $serveur : 0; |
|
| 953 | ||
| 954 | if ($link = spip_connect_db('', '', '', '', '@selectdb@' . $db , $serveur, '', '')){ |
|
| 955 | if (($db==$link['db']) && $GLOBALS['connexions'][$index] = $link) |
|
| 956 | return $db; |
|
| 957 | } else { |
|
| 958 | spip_log("Impossible de selectionner la base $db", 'sqlite'); |
|
| 959 | return false; |
|