Changeset 32221 for extensions


Ignore:
Timestamp:
Jun 1, 2020, 9:26:37 PM (4 years ago)
Author:
ddtddt
Message:

[manage_properties_photos] notice if extended description is no installed thanks to executive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/manage_properties_photos/initadmin.php

    r32188 r32221  
    5353 
    5454function MPP_loc_end_element_set_global(){
    55   global $template;
     55  global $template, $pwg_loaded_plugins;
    5656 
    5757  $template->assign(array(
     
    6565        $propertieslist = array();
    6666        $propertieslist2 = tab_add_info_by_photo();
    67         $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
    68           if($PAED['state'] == 'active'){
     67        if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    6968                add_event_handler('AP_render_content', 'get_user_language_desc');
    7069                $template->assign('useED',1);
Note: See TracChangeset for help on using the changeset viewer.