Ignore:
Timestamp:
Sep 5, 2013, 12:13:45 PM (11 years ago)
Author:
mistic100
Message:

revert changes form previous commit + fix undefined index after restoration

File:
1 edited

Legend:

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

    r18649 r24348  
    2121function plugin_uninstall()
    2222{
    23   global $prefixeTable;
     23  global $prefixeTable, $conf;
    2424 
    25   pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%" LIMIT 3;');
     25  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%";');
    2626  pwg_query('DROP TABLE IF EXISTS `'. $prefixeTable .'contact_form`;');
     27 
     28  unset($conf['ContactForm'], $conf['ContactForm_before'], $conf['ContactForm_after']);
    2729}
    2830
Note: See TracChangeset for help on using the changeset viewer.