X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fbase%2Fabstract_sql.php;fp=www%2Fecrire%2Fbase%2Fabstract_sql.php;h=87972443c29548a2429b80daaccb3d2453515787;hp=08aa39429b78f1c7c373fe6a57cdb8d945a7d8a6;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/base/abstract_sql.php b/www/ecrire/base/abstract_sql.php index 08aa394..8797244 100644 --- a/www/ecrire/base/abstract_sql.php +++ b/www/ecrire/base/abstract_sql.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -313,7 +313,7 @@ function sql_drop_view($table, $exist='', $serveur='', $option=true) function sql_showbase($spip=NULL, $serveur='', $option=true) { if ($spip == NULL){ - $connexion = $GLOBALS['connexions'][$serveur ? $serveur : 0]; + $connexion = $GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]; $spip = $connexion['prefixe'] . '\_%'; } @@ -334,7 +334,7 @@ function sql_alltable($spip=NULL, $serveur='', $option=true) function sql_showtable($table, $table_spip = false, $serveur='', $option=true) { if ($table_spip){ - $connexion = $GLOBALS['connexions'][$serveur ? $serveur : 0]; + $connexion = $GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]; $prefixe = $connexion['prefixe']; $vraie_table = preg_replace('/^spip/', $prefixe, $table); } else $vraie_table = $table;