Changeset 18329


Ignore:
Timestamp:
Sep 28, 2012, 12:24:23 PM (8 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, fix bug on file .css

Location:
extensions/Autosize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r18328 r18329  
    263263            $css_display="block" ;
    264264         }
     265         $file_css=AUTOSIZE_PATH."css/".$theme.".css";
     266         if (!file_exists($file_css)){
     267         $file_css="no";
     268         }
     269       
     270
    265271        $template->set_filenames(array('autosize_content_header'=> $file ));
    266272        $template->assign(      array( AUTOSIZE_PATH,$AUTOSIZE_PATH,
     273                                  'file_css' =>$file_css,
    267274                                  'css_display' => $css_display,
    268275                                  'select_type' =>$select_type,
  • extensions/Autosize/template/picture_1.tpl

    r18325 r18329  
    11{html_head}
    2 {combine_css path=`$AUTOSIZE_PATH`css/`$theme`.css"  order=10 }
     2{if $file_css!="no" }
     3{combine_css path=$file_css  order=10 }
     4{/if}
    35{/html_head}
    46{if $css_display=="none" }
Note: See TracChangeset for help on using the changeset viewer.