Changeset 32462 for extensions/PersoAbout
- Timestamp:
- Feb 21, 2021, 6:36:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PersoAbout/main.inc.php
r32422 r32462 53 53 54 54 function ppa(){ 55 global $template, $conf ;55 global $template, $conf, $pwg_loaded_plugins; 56 56 $template->set_prefilter('about', 'ppaT'); 57 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 58 if($PAED['state'] == 'active') add_event_handler('AP_render_content', 'get_user_language_desc'); 57 if (isset($pwg_loaded_plugins['ExtendedDescription'])){ 58 add_event_handler('AP_render_content', 'get_user_language_desc'); 59 } 59 60 $pat=trigger_change('AP_render_content', $conf['persoAbout']); 60 61 if (!empty($pat)){
Note: See TracChangeset
for help on using the changeset viewer.