Ignore:
Timestamp:
Jun 14, 2011, 8:29:09 PM (10 years ago)
Author:
mistic100
Message:

remove SmiliesSupport version test, allow 3 chars hexadecimal colors

File:
1 edited

Legend:

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

    r11295 r11377  
    4444    ));
    4545    return $menu;
    46   }
    47  
    48   // version 2.2.a or greater of SmiliesSupport is required
    49   add_event_handler('loc_end_admin', 'bbcode_bar_check_smilies');
    50   function bbcode_bar_check_smilies()
    51   {
    52     global $page, $template, $pwg_loaded_plugins;
    53 
    54     if (
    55       ( (isset($_GET['page']) AND $_GET['page'] == 'plugins_list') OR (isset($_GET['section']) AND $_GET['section'] == 'bbcode_bar/admin.php') )
    56       AND isset($pwg_loaded_plugins['SmiliesSupport']) AND strcmp($pwg_loaded_plugins['SmiliesSupport']['version'], '2.2.f') == -1
    57     ) {
    58       array_push($page['warnings'], "BBCode Bar : SmiliesSupport has been detected, but is not up to date. Version 2.2.a or greater is required. Please update.");
    59       $template->assign('warnings', $page['warnings']);
    60     }
    61   }
    62  
     46  }
    6347}
    6448
Note: See TracChangeset for help on using the changeset viewer.