Ignore:
Timestamp:
Jan 20, 2020, 4:38:49 AM (2 years ago)
Author:
Cerdic
Message:

factorisation de code et renommage variable

Location:
_plugins_/trad-lang/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/trad-lang/trunk

    • Property subgit:lock:ffdf04659dfd92246684ffb4d18a535a51e04b1f deleted
    • Property subgit:lock:627fd890513a7887a9d811622851b921ad9af4f8 set to 2020-01-20T09:05:27.573
  • _plugins_/trad-lang/trunk/inc/salvatore_ecriveur.php

    r119824 r119832  
    5252        }
    5353        salvatore_check_dir($dir_modules);
    54         $gestionnaire_url = $GLOBALS['meta']['adresse_site'];
    55         if (defined('_SALVATORE_TEST_URL_GESTIONNAIRE')) {
    56                 $gestionnaire_url = _SALVATORE_TEST_URL_GESTIONNAIRE;
    57         }
     54        $url_gestionnaire = salvatore_get_self_url();
    5855
    5956        foreach ($liste_sources as $source){
     
    7067
    7168                // url de l'interface de traduction d'un module
    72                 $url_trad = url_absolue(generer_url_entite($id_tradlang_module, 'tradlang_module'), $gestionnaire_url);
    73                 export_trad_module($source, $gestionnaire_url, $url_trad, $message_commit);
     69                $url_trad = url_absolue(generer_url_entite($id_tradlang_module, 'tradlang_module'), $url_gestionnaire);
     70                export_trad_module($source, $url_gestionnaire, $url_trad, $message_commit);
    7471        }
    7572}
Note: See TracChangeset for help on using the changeset viewer.