|
|
|
@ -62,10 +62,9 @@ function devis_affiche_enfants($flux) {
|
|
|
|
|
*/
|
|
|
|
|
function devis_affiche_milieu($flux) {
|
|
|
|
|
$texte = '';
|
|
|
|
|
$e = trouver_objet_exec($flux['args']['exec']);
|
|
|
|
|
|
|
|
|
|
// auteurs sur les devis
|
|
|
|
|
if (!$e['edition'] and in_array($e['type'], array('devis'))) {
|
|
|
|
|
if ($e = trouver_objet_exec($flux['args']['exec']) and !$e['edition'] and in_array($e['type'], array('devis'))) {
|
|
|
|
|
$texte .= recuperer_fond('prive/objets/editer/liens', array(
|
|
|
|
|
'table_source' => 'auteurs',
|
|
|
|
|
'objet' => $e['type'],
|
|
|
|
@ -73,8 +72,6 @@ function devis_affiche_milieu($flux) {
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($texte) {
|
|
|
|
|
if ($p = strpos($flux['data'], '<!--affiche_milieu-->')) {
|
|
|
|
|
$flux['data'] = substr_replace($flux['data'], $texte, $p, 0);
|
|
|
|
|