Ignore:
Timestamp:
May 7, 2010, 10:21:09 PM (14 years ago)
Author:
grum
Message:

Update plugin with some new functions

File:
1 edited

Legend:

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

    r5550 r6106  
    77
    88include_once('gpc_version.inc.php'); // => Don't forget to update this file !!
     9include_once('gpc_install.class.inc.php'); // => Don't forget to update this file !!
    910
    1011
     
    1213function plugin_install($plugin_id, $plugin_version, &$errors)
    1314{
     15  global $prefixeTable;
     16
     17  $obj = new GPC_Install($prefixeTable, __FILE__);
     18  $result=$obj->install();
     19  if(!$result)
     20  {
     21    array_push($errors, "error");
     22  }
     23  unset($obj);
    1424}
    1525
     
    2434function plugin_uninstall($plugin_id)
    2535{
     36  global $prefixeTable;
     37
     38  $obj = new GPC_Install($prefixeTable, __FILE__);
     39  $result=$obj->uninstall();
     40  /*
     41   * piwigo don't alllow to manage errors during the uninstall process...
     42  if(!$result or is_string($result))
     43  {
     44    array_push($errors, l10n($result));
     45  }
     46  */
     47  unset($obj);
    2648}
    2749
Note: See TracChangeset for help on using the changeset viewer.