public function uninstall() { if (parent::uninstall()) { return parent::setUnInstalled(); } else { return false; } }
<?php if ($ext_source == '') { die('No ext to parse'); } $ext_local = strtolower($ext_local); $ext_source = strtolower($ext_source); ?> <div class="section"> <h2>From</h2> <?php $chosen_importer = 'importer/' . $source . '.php'; if (!file_exists($chosen_importer)) { die('No importer for source ' . $source); } $importer = new ImportExtension(); echo '<pre>'; include_once $chosen_importer; if (!$importer->validate()) { $apply = false; } $caption = count($importer->cards) . ' cards'; $nbimages = $importer->nbimages(); if (count($importer->cards) != $nbimages) { $caption .= ', ' . $nbimages . ' images'; } ?> </pre> <table> <caption><?php