Ignore:
Timestamp:
Apr 3, 2011, 12:03:09 PM (14 years ago)
Author:
mistic100
Message:

better compatibility test with SmiliesSupport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/bbcode_bar/bbcode_bar.inc.php

    r9965 r10011  
    44function set_bbcode_bar()
    55{
    6         global $template, $conf, $lang, $user, $pwg_loaded_plugins, $page;
     6        global $template, $conf, $pwg_loaded_plugins, $page;
    77        load_language('plugin.lang', dirname(__FILE__) . '/');
    88        $conf_bbcode_bar = unserialize($conf['bbcode_bar']);
     
    2828        $template->parse('bbcode_bar', true);           
    2929
    30         // smilies support ## must be parsed avec bbcode_bar, because the javascript must be after bbc's one
    31         if (isset($pwg_loaded_plugins['SmiliesSupport']))
    32         {
    33                 set_smiliessupport();
     30        // smilies support >2.2.a ## must be parsed after bbcode_bar, because the javascript must be after bbc's one
     31        if (isset($pwg_loaded_plugins['SmiliesSupport']) AND version_compare($pwg_loaded_plugins['SmiliesSupport']['version'], '2.2.a') != -1) {
     32                        set_smiliessupport();
    3433        }       
    3534}
Note: See TracChangeset for help on using the changeset viewer.