/** * Upgrade the plugins * * @return * @since 1.1.0 * @throws Exception */ protected function upgradePlugins() { // Getting the step $step = JUpgradeproStep::getInstance('ext_plugins', true); // Get jUpgradeExtensionsPlugins instance $plugins = JUpgradepro::getInstance($step); $rows = $plugins->dataSwitch(); $this->_addExtensions($rows, 'plg'); $step->status = 2; $step->_updateStep(true); return true; }
/** * The public entry point for the class. * * @return void * @since 0.5.6 * @throws Exception */ public function upgrade() { if (parent::upgrade()) { // Rebuild the categories table $table = JTable::getInstance('Category', 'JTable', array('dbo' => $this->_db)); if (!$table->rebuild()) { throw new Exception($table->getError()); } } }