Ignore:
Timestamp:
Apr 8, 2011, 4:15:05 PM (13 years ago)
Author:
mistic100
Message:

add config check for activation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/maintain.inc.php

    r9784 r10165  
    33
    44function plugin_install()
     5{
     6        global $conf;
     7
     8        if (!isset($conf['Front2Back'])) {
     9                $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
     10                        VALUES ("Front2Back", ",thumbnail/verso/,pwg_high/verso/,", "Parametres Front2Back");';
     11                pwg_query($q);
     12        }
     13}
     14
     15function plugin_activate()
    516{
    617        global $conf;
Note: See TracChangeset for help on using the changeset viewer.