예제 #1
0
function com_uninstall()
{
    if (version_compare(JVERSION, '1.6', '>')) {
        return;
    }
    require_once JPATH_ADMINISTRATOR . '/components/com_kunena/install/model.php';
    $installer = new KunenaModelInstall();
    $installer->uninstall();
}
예제 #2
0
 public function uninstall($parent)
 {
     $adminpath = $parent->getParent()->getPath('extension_administrator');
     $model = "{$adminpath}/install/model.php";
     if (file_exists($model)) {
         require_once $model;
         $installer = new KunenaModelInstall();
         $installer->uninstall();
     }
     return true;
 }