Changeset 18772


Ignore:
Timestamp:
Oct 28, 2012, 6:20:47 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - Contact1menu - error message

Location:
extensions/Contact1menu
Files:
3 added
1 edited

Legend:

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

    r9418 r18772  
    22/*
    33Plugin Name: Contact 1 menu
    4 Version: 1
     4Version: auto
    55Description: Add contact as menu level 1
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=479
     
    1414define('C1M_PATH' , PHPWG_PLUGINS_PATH . C1M_DIR . '/');
    1515
     16$desacc = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ContactForm';"));
     17
     18if($desacc['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_c1m_menubar_blocks');
     
    4758    }
    4859}
    49 
     60        }
    5061
    5162?>
Note: See TracChangeset for help on using the changeset viewer.