Changeset 18768


Ignore:
Timestamp:
10/28/12 18:09:23 (7 years ago)
Author:
ddtddt
Message:

[extensions] - uploadt1menu - error message

Location:
extensions/uploadt1menu
Files:
3 added
1 edited

Legend:

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

    r12382 r18768  
    1414define('U1M_PATH' , PHPWG_PLUGINS_PATH . U1M_DIR . '/'); 
    1515 
     16$desac = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'community';")); 
     17 
     18if($desac['state'] != 'active')  
     19        { 
     20if (script_basename() == 'admin')    
     21{ 
     22  include_once(dirname(__FILE__).'/initadmin.php'); 
     23} 
     24        } 
     25else 
     26        { 
    1627 
    1728add_event_handler('blockmanager_register_blocks', 'register_u1m_menubar_blocks'); 
     
    5869    } 
    5970} 
    60  
     71        } 
    6172 
    6273?> 
Note: See TracChangeset for help on using the changeset viewer.