Changeset 30256 in spip-zone


Ignore:
Timestamp:
Jul 27, 2009, 8:04:02 AM (10 years ago)
Author:
cedric@…
Message:

faire marcher le test quelle que soit la valeur initiale de $dossier_squelettes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/tests/path/creer_chemin.php

    r14601 r30256  
    33        $test = 'chemin';
    44        require '../test.inc';
     5
     6        $n = count(explode(":",$GLOBALS['dossier_squelettes']));
    57       
    68        $chemin = creer_chemin();
     
    911       
    1012        if ((count($chemin1)!=(count($chemin)+1))
    11         OR ('toto/'!==$chemin1[1] AND 'toto/'!==$chemin1[0]))
     13        OR ('toto/'!==$chemin1[$n] AND 'toto/'!==$chemin1[$n+1]))
    1214                die('Erreur ajout chemin par la fonction _chemin()'.var_dump($chemin).var_dump($chemin1));
    1315
Note: See TracChangeset for help on using the changeset viewer.