Changeset 31775 in spip-zone for _squelettes_/median


Ignore:
Timestamp:
Sep 23, 2009, 11:29:41 PM (10 years ago)
Author:
cy_altern@…
Message:

traiter le cas ou $GLOBALSdossier_squelettes? est vide (merci denisb pour la détection du bogue!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/median/squelette_median_options.php

    r29322 r31775  
    1616
    1717// si on utilise ce plugin, configuration du dossier de squelettes correspondant
     18$GLOBALS['dossier_squelettes'] = '';
    1819  $chem_squel = 'squelettes';
    1920  if ($Tsquel = explode(":",$GLOBALS['dossier_squelettes'])) $chem_squel = $Tsquel[0];
    20   $GLOBALS['dossier_squelettes'] .= ':'.$chem_squel.'/median';
     21  $sep = ($GLOBALS['dossier_squelettes'] != ''? ':' : '');
     22  $GLOBALS['dossier_squelettes'] .= $sep.$chem_squel.'/median';
    2123
     24var_dump(  $GLOBALS['dossier_squelettes']);
    2225 
    2326?>
Note: See TracChangeset for help on using the changeset viewer.