Changeset 109672 in spip-zone


Ignore:
Timestamp:
Mar 25, 2018, 11:22:54 AM (3 years ago)
Author:
rastapopoulos@…
Message:

Correction encore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _outils_/spip-cli/trunk/spip-cli/CoreListerVersions.php

    r109671 r109672  
    109109               
    110110                foreach ($temp as $dossier) {
    111                         $cle = preg_replace('|(spip-)?(.*?)(-stable)?/?|i', '$2', $dossier);
    112                         $liste[$cle] = "{$this->chemin_svn_racine}/$type/$dossier";
     111                        if ($cle = preg_replace('|(spip-)?(.*?)(-stable)?/?|i', '$2', $dossier)) {
     112                                $liste[$cle] = "{$this->chemin_svn_racine}/$type/$dossier";
     113                        }
    113114                }
    114115                $liste = array_filter(array_unique($liste));
Note: See TracChangeset for help on using the changeset viewer.