- Timestamp:
- 2009-04-20T15:27:33+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/MediaWikiPlugin.pm
r16104 r19123 221 221 # download the stylesheets if we haven't downloaded them yet 222 222 # add prefix to each style elmement, comment out the body element 223 # and copy the files to collection's imagesfolder223 # and copy the files to collection's style folder 224 224 for ($css_file_count = 0; $css_file_count < scalar(@css_files); $css_file_count++) { 225 225 … … 288 288 } 289 289 290 # Copy the modified stylesheets to collection's imagesfolder290 # Copy the modified stylesheets to collection's style folder 291 291 # 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/; 294 294 $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")){ 298 298 print OUTPUT $css_content; 299 299 close(OUTPUT);
Note:
See TracChangeset
for help on using the changeset viewer.