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

add config check for activation

Location:
extensions/Front2Back
Files:
2 edited

Legend:

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

    r9784 r10165  
    22/*
    33Plugin Name: Front2Back
    4 Version: 2.2.a
     4Version: 2.2.b
    55Description: Add a link on picture's page to show a alternative version of the pic (for postcards for example)
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=183
  • 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.