. * */ namespace Vvveb\Plugins\Seo; use function Vvveb\__; use Vvveb\System\Core\View; use Vvveb\System\Import\Sql; if (! defined('V_VERSION')) { die('Invalid request!'); } #[\AllowDynamicProperties] class Install { function import() { //don't catch exception if import fails to allow plugin error check to stop activating //try { $engine = DB_ENGINE; $import = new Sql(); //$import->setPath(__DIR__ . "/install/sql/$engine/schema/"); //$import->createTables(); $import->setPath(__DIR__ . '/install/sql/insert/'); $import->insertData(); //} catch (\Exception $e) { //$view = View::getInstance(); //$view->errors[] = sprintf(__('Db error: "%s" Error code: "%s"'), $e->getMessage(), $e->getCode()); //} } function run() { $this->import(); } }