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

[extentions] Smilies Support

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

Legend:

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

    r3304 r9683  
    11<?php
    2 
    32if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    43
    54function plugin_install()
    65{
    7   global $conf;
     6        global $conf;
    87
    9   if (!isset($conf['smiliessupport']))
    10   {
    11     $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    12 VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");';
    13     pwg_query($q);
    14   }
     8        if (!isset($conf['smiliessupport']))
     9        {
     10                $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
     11                        VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");';
     12                pwg_query($q);
     13        }
    1514}
    1615
    1716function plugin_uninstall()
    1817{
    19   global $conf;
     18        global $conf;
    2019
    21   if (isset($conf['smiliessupport']))
    22   {
    23     pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;');
    24   }
     20        if (isset($conf['smiliessupport']))
     21        {
     22                pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;');
     23        }
    2524}
     25
     26?>
Note: See TracChangeset for help on using the changeset viewer.