@@ 661-677 (lines=17) @@ | ||
658 | } |
|
659 | } |
|
660 | ||
661 | function uninstall($module) { |
|
662 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'OSCOM_APP_PAYPAL_BRAINTREE_" . tep_db_input($module) . "_%'"); |
|
663 | ||
664 | $m_class = 'OSCOM_Braintree_' . $module; |
|
665 | ||
666 | if ( !class_exists($m_class) ) { |
|
667 | $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php'); |
|
668 | ||
669 | include(DIR_FS_CATALOG . 'includes/apps/braintree/modules/' . $module . '/' . $module . '.php'); |
|
670 | } |
|
671 | ||
672 | $m = new $m_class(); |
|
673 | ||
674 | if ( method_exists($m, 'uninstall') ) { |
|
675 | $m->uninstall($this); |
|
676 | } |
|
677 | } |
|
678 | ||
679 | function logUpdate($message, $version) { |
|
680 | if ( is_writable(DIR_FS_CATALOG . 'includes/apps/braintree/work') ) { |
@@ 715-731 (lines=17) @@ | ||
712 | } |
|
713 | } |
|
714 | ||
715 | function uninstall($module) { |
|
716 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'OSCOM_APP_PAYPAL_" . tep_db_input($module) . "_%'"); |
|
717 | ||
718 | $m_class = 'OSCOM_PayPal_' . $module; |
|
719 | ||
720 | if ( !class_exists($m_class) ) { |
|
721 | $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php'); |
|
722 | ||
723 | include(DIR_FS_CATALOG . 'includes/apps/paypal/modules/' . $module . '/' . $module . '.php'); |
|
724 | } |
|
725 | ||
726 | $m = new $m_class(); |
|
727 | ||
728 | if ( method_exists($m, 'uninstall') ) { |
|
729 | $m->uninstall($this); |
|
730 | } |
|
731 | } |
|
732 | ||
733 | function logUpdate($message, $version) { |
|
734 | if ( is_writable(DIR_FS_CATALOG . 'includes/apps/paypal/work') ) { |