Show
Ignore:
Timestamp:
07/16/08 16:31:46 (4 months ago)
Author:
freakerz
Message:

Add keys to the Stack::add(), this way jQuery will not be included twice.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/styleswitcher/trunk/styleswitcher.plugin.php

    r111 r678  
    2929        return array( 
    3030            'name' => 'StyleSwitcher', 
    31             'version' => '0.1', 
     31            'version' => '0.1.1', 
    3232            'url' => 'http://habariproject.org/', 
    3333            'author' => 'Habari Community', 
     
    4545        $jq_js_file= Site::get_url('scripts', TRUE) . 'jquery.js'; 
    4646        $ss_js_file= Site::get_url('user', TRUE) . 'plugins/' . basename(dirname(__FILE__)) . '/styleswitcher.js'; 
    47         Stack::add( 'template_header_javascript', $jq_js_file ); 
    48         Stack::add( 'template_header_javascript', $ss_js_file ); 
     47        Stack::add( 'template_header_javascript', $jq_js_file, 'jquery' ); 
     48        Stack::add( 'template_header_javascript', $ss_js_file, 'styleswitcher' ); 
    4949    } 
    5050