X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcheckschema.php;h=cec5773683ef8ef52d7c7b13ab615fe896a2163c;hb=c5a710e081079ae79ac84aa3628314bb803c0aed;hp=73fd74302c6ad1230794f5b4ba12e897cb608298;hpb=b716d01a41c54c06676a1e54a48c36e05755a247;p=quix0rs-gnu-social.git diff --git a/scripts/checkschema.php b/scripts/checkschema.php index 73fd74302c..cec5773683 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('CheckSchema');