Skip to content

Commit d9cf90a

Browse files
committed
fix(install): pick the right schema
1 parent 1ed3e9e commit d9cf90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function plugin_formcreator_getSchemaPath(string $version = null): ?string {
502502

503503
// Drop suffixes for alpha, beta, rc versions
504504
$matches = [];
505-
preg_match('/^(\d+\.\d+\.\d+)/', PLUGIN_FORMCREATOR_VERSION, $matches);
505+
preg_match('/^(\d+\.\d+\.\d+)/', $version, $matches);
506506
$version = $matches[1];
507507

508508
return Plugin::getPhpDir('formcreator') . "/install/mysql/plugin_formcreator_${version}_empty.sql";

0 commit comments

Comments
 (0)