|
@@ 68-74 (lines=7) @@
|
| 65 |
|
$desc = ''; |
| 66 |
|
|
| 67 |
|
// base sous SPIP: gerer les abreviations explicites des noms de table |
| 68 |
|
if ($connexion['spip_connect_version']) { |
| 69 |
|
include_spip('public/interfaces'); |
| 70 |
|
if (isset($table_des_tables[$nom])) { |
| 71 |
|
$nom = $table_des_tables[$nom]; |
| 72 |
|
$nom_sql = 'spip_' . $nom; |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
// si c'est la premiere table qu'on cherche |
| 77 |
|
// et si on est pas explicitement en recalcul |
|
@@ 99-107 (lines=9) @@
|
| 96 |
|
$nom_sql = 'spip_' . $nom; |
| 97 |
|
$fdesc = &$tables_principales[$nom_sql]; |
| 98 |
|
} |
| 99 |
|
else { |
| 100 |
|
include_spip('base/auxiliaires'); |
| 101 |
|
if (isset($tables_auxiliaires['spip_' .$nom])) { |
| 102 |
|
$nom_sql = 'spip_' . $nom; |
| 103 |
|
$fdesc = &$tables_auxiliaires[$nom_sql]; |
| 104 |
|
} else { # table locale a cote de SPIP, comme non SPIP: |
| 105 |
|
$fdesc = array(); |
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
// faut il interpreter le prefixe 'spip_' ? |
| 110 |
|
$transposer_spip = ($nom_sql != $nom); |