Skip to content
Extraits de code Groupes Projets
Valider e33985ee rédigé par cerdic's avatar cerdic
Parcourir les fichiers

prendre en charge le table_prefixe dans spip_mysql_showtable qui n'etait pas...

prendre en charge le table_prefixe dans spip_mysql_showtable qui n'etait pas forcement fait pour ca au depart :-)
parent 98d570cd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -189,6 +189,10 @@ function spip_connect_db($host, $port, $login, $pass, $db) { ...@@ -189,6 +189,10 @@ function spip_connect_db($host, $port, $login, $pass, $db) {
function spip_mysql_showtable($nom_table) function spip_mysql_showtable($nom_table)
{ {
if ($GLOBALS['table_prefix']) $table_pref = $GLOBALS['table_prefix']."_";
else $table_pref = "";
$nom_table = preg_replace('/^spip_/', $table_pref, $nom_table);
$a = spip_query("SHOW TABLES LIKE '$nom_table'"); $a = spip_query("SHOW TABLES LIKE '$nom_table'");
if (!a) return ""; if (!a) return "";
if (!spip_fetch_array($a)) return ""; if (!spip_fetch_array($a)) return "";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter