| | 45 | |
| | 46 | // version 2.2.a or greater of SmiliesSupport is required |
| | 47 | add_event_handler('loc_end_admin', 'bbcode_bar_check_smilies'); |
| | 48 | function bbcode_bar_check_smilies() { |
| | 49 | global $page, $template, $pwg_loaded_plugins; |
| | 50 | |
| | 51 | if ( |
| | 52 | ($_GET['page'] == 'plugins_list' OR $_GET['section'] == 'bbcode_bar/admin.php') |
| | 53 | AND isset($pwg_loaded_plugins['SmiliesSupport']) |
| | 54 | AND version_compare($pwg_loaded_plugins['SmiliesSupport']['version'], '2.2.a') == -1 |
| | 55 | ) { |
| | 56 | $page['warnings'][] = "BBCode Bar : SmiliesSupport has been detected, but is not up to date. Version 2.2.a or greater is required. Please update."; |
| | 57 | $template->assign('warnings', $page['warnings']); |
| | 58 | } |
| | 59 | } |
| | 60 | |