Changeset 19123


Ignore:
Timestamp:
2009-04-20T15:27:33+12:00 (15 years ago)
Author:
kjdon
Message:

copy css files to collection's style dir, not images dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/MediaWikiPlugin.pm

    r16104 r19123  
    221221    # download the stylesheets if we haven't downloaded them yet
    222222        # add prefix to each style elmement, comment out the body element
    223         # and copy the files to collection's images folder
     223        # and copy the files to collection's style folder
    224224    for ($css_file_count = 0; $css_file_count < scalar(@css_files); $css_file_count++) {       
    225225       
     
    288288        }
    289289           
    290             # Copy the modified stylesheets to collection's images folder
     290            # Copy the modified stylesheets to collection's style folder
    291291            # for future customization
    292             my $images_dir = $base_dir;
    293             $images_dir =~ s/import$/images/;
     292            my $style_dir = $base_dir;
     293            $style_dir =~ s/import$/style/;
    294294            $css_file =~ m/(.*)\/(.*)$/;
    295             $images_dir = &util::filename_cat($images_dir, $2);           
    296            
    297             if(open(OUTPUT, ">$images_dir")){   
     295            $style_dir = &util::filename_cat($style_dir, $2);           
     296           
     297            if(open(OUTPUT, ">$style_dir")){   
    298298              print OUTPUT $css_content;
    299299              close(OUTPUT);
Note: See TracChangeset for help on using the changeset viewer.