Changeset 60

Show
Ignore:
Timestamp:
01/18/07 13:56:44 (2 years ago)
Author:
ingy
Message:
 r3119@skinny:  ingy | 2007-01-18 13:56:17 -0800
 Fix to reverse order os CSS files. First in last out.
 
 This is to make theme css come last. Hopefully doesn't screw up others.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/core/Kwiki/lib/Kwiki/CSS.pm

    r45 r60  
    66 
    77conf css_path => [ 'css' ]; 
     8 
     9sub _append_file { 
     10    my ($files, $file_path) = @_; 
     11    unshift @$files, $file_path; 
     12} 
    813 
    914__DATA__ 
  • trunk/src/core/Kwiki/lib/Kwiki/WebFile.pm

    r45 r60  
    2424    my $files = $self->files; 
    2525    @$files = grep { not /\/$file$/ } @$files; 
     26    $self->_append_file($files, $file_path); 
     27} 
     28 
     29sub _append_file { 
     30    my ($files, $file_path) = @_; 
    2631    push @$files, $file_path; 
    2732}