Ignore:
Timestamp:
Apr 11, 2010, 11:01:02 PM (11 years ago)
Author:
patfr@…
Message:

MAJ automatiques : prise en compte de la nouvelle <origine />

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/couteau_suisse/outils/maj_auto_action_rapide.php

    r35189 r37157  
    77include_spip('inc/distant');
    88
     9define('_MAJ_SVN_FILE', 'file:///home/svn/repository/spip-zone/');
    910define('_MAJ_SVN_DEBUT', 'svn://zone.spip.org/spip-zone/');
    1011define('_MAJ_SVN_TRAC', 'svn://trac.rezo.net/spip-zone/'); // ancienne URL
     
    130131        $lastmodified = @file_exists($svn_rev)?@filemtime($svn_rev):0;
    131132        if($ok && preg_match(',<origine>(.+)</origine>,', $svn, $regs)) {
    132                 $url_origine = str_replace(_MAJ_SVN_DEBUT, _MAJ_LOG_DEBUT, $regs[1]);
     133                $url_origine = str_replace(array(_MAJ_SVN_FILE, _MAJ_SVN_DEBUT), _MAJ_LOG_DEBUT, $regs[1]);
    133134                // prise en compte du recent demenagement de la Zone...
    134135                $url_origine = preg_replace(',/_plugins_/_(?:stable|dev|test)_/,','/_plugins_/', $url_origine);
Note: See TracChangeset for help on using the changeset viewer.