Changeset 43534 in spip-zone


Ignore:
Timestamp:
Jan 13, 2011, 11:38:37 AM (10 years ago)
Author:
cedric@…
Message:

pas de chemin complet dans inclure, mais un chemin a trouver

Location:
_plugins_/bandeau
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bandeau/bando_fonctions.php

    r35483 r43534  
    3030if (!function_exists('bando_style_prive_theme')){
    3131function bando_style_prive_theme() {
    32         if ($f = find_in_theme('style_prive_theme.html'))
     32        if ($f = find_in_theme('style_prive_theme.html','',false,false))
    3333                return preg_replace(',[.]html$,Ui','',$f);
    3434        return '';
  • _plugins_/bandeau/bando_options.php

    r41680 r43534  
    2828}
    2929
    30 function find_in_theme($file, $dirname='', $include=false){
     30function find_in_theme($file, $dirname='', $include=false, $found = true){
    3131        $themes = lister_themes_prives();
    3232        foreach($themes as $theme){
    33                 if ($f = find_in_path($file,"prive/themes/$theme/$dirname",$include))
    34                         return $f;
     33                if ($f = find_in_path($file,$g="prive/themes/$theme/$dirname",$include))
     34                        return $found?$f:"$g$file";
    3535        }
    3636        // fall back transitoire sur prive/images/
    37         if ($f = find_in_path($file,"",$include))
    38                 return $f;
     37        if ($f = find_in_path($g = $file,"",$include))
     38                return $found?$f:$g;
    3939        spip_log("$dirname/$file introuvable dans le theme ".reset($themes),'theme');
    4040        return "";
  • _plugins_/bandeau/plugin.xml

    r43516 r43534  
    33        <auteur>Collectif spip-dev</auteur>
    44        <licence>(c) 2009 GPL</licence>
    5         <version>1.1.8</version>
     5        <version>1.1.9</version>
    66        <icon>bandeau-32.png</icon>
    77        <etat>stable</etat>
Note: See TracChangeset for help on using the changeset viewer.