Ignore:
Timestamp:
Mar 14, 2011, 9:35:14 PM (13 years ago)
Author:
mistic100
Message:

[extentions] BBcode Bar

  • compatibility with Piwigo 2.2.0
  • many corrections
File:
1 edited

Legend:

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

    r3305 r9682  
    55function plugin_install()
    66
    7   global $conf;
     7        global $conf;
    88
    9   if (!isset($conf['bbcode_bar']))
    10   {
    11     $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    12 VALUES ("bbcode_bar","1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,plugins/bbcode_bar/icon","Parametres BBCode_bar");';
    13     pwg_query($q);
    14   }
     9        if (!isset($conf['bbcode_bar']))
     10        {
     11                $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
     12                        VALUES ("bbcode_bar","1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,plugins/bbcode_bar/icon","Parametres BBCode_bar");';
     13                pwg_query($q);
     14        }
    1515}
    1616
    1717function plugin_uninstall()
    1818{
    19     global $conf;
     19        global $conf;
    2020
    21     if (isset($conf['bbcode_bar']))
    22     {
    23       pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar" LIMIT 1;');
    24     }
     21        if (isset($conf['bbcode_bar']))
     22        {
     23                pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar" LIMIT 1;');
     24        }
    2525}
     26
     27?>
Note: See TracChangeset for help on using the changeset viewer.