Changeset 35063 in spip-zone


Ignore:
Timestamp:
Feb 9, 2010, 11:06:24 PM (11 years ago)
Author:
cedric@…
Message:

reconnaitre les squelettes issus du scaffolding pour calculer le bon chemin a mettre dans squelettes/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/skel_editor/inc/skeleditor.php

    r35028 r35063  
    168168function skeleditor_nom_copie($source){
    169169        $file = "";
     170        // cas particulier des squelettes obtenus par scaffolding
     171        if (strncmp($source,_DIR_CACHE."scaffold/",$l=strlen(_DIR_CACHE."scaffold/"))==0)
     172                return substr($source,$l);
    170173        $spip_path = creer_chemin();
    171174        $spip_path = array_diff($spip_path, array(_DIR_RACINE));
Note: See TracChangeset for help on using the changeset viewer.