| @@ 444-445 (lines=2) @@ | ||
| 441 | $index = $serveur ? strtolower($serveur) : 0; |
|
| 442 | ||
| 443 | if ($link = spip_connect_db('', '', '', '', $db, 'pg', '', '')){ |
|
| 444 | if (($db==$link['db']) && $GLOBALS['connexions'][$index] = $link) |
|
| 445 | return $db; |
|
| 446 | } else |
|
| 447 | return false; |
|
| 448 | } |
|
| @@ 1166-1167 (lines=2) @@ | ||
| 1163 | $index = $serveur ? $serveur : 0; |
|
| 1164 | ||
| 1165 | if ($link = spip_connect_db('', '', '', '', '@selectdb@'.$db, $serveur, '', '')){ |
|
| 1166 | if (($db==$link['db']) && $GLOBALS['connexions'][$index] = $link) |
|
| 1167 | return $db; |
|
| 1168 | } else { |
|
| 1169 | spip_log("Impossible de selectionner la base $db", 'sqlite.'._LOG_HS); |
|
| 1170 | return false; |
|