X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcheckschema.php;h=584f7a39e753a4d4d18dbb497466758d435ceb37;hb=dcb7ce36d8e4e1fe34d99cc52b4e1dc5d866fada;hp=73fd74302c6ad1230794f5b4ba12e897cb608298;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/scripts/checkschema.php b/scripts/checkschema.php index 73fd74302c..584f7a39e7 100755 --- a/scripts/checkschema.php +++ b/scripts/checkschema.php @@ -2,7 +2,7 @@ $def) { } $schemaUpdater->checkSchema(); +if (have_option('x', 'extensions')) { + $ext = trim(get_option_value('x', 'extensions')); + $exts = explode(',', $ext); + foreach ($exts as $plugin) { + try { + addPlugin($plugin); + } catch (Exception $e) { + print $e->getMessage()."\n"; + exit(1); + } + } +} + +Event::handle('BeforePluginCheckSchema'); Event::handle('CheckSchema');