We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78c12a8 commit 74c83bbCopy full SHA for 74c83bb
setup.php
@@ -89,8 +89,10 @@ function plugin_formcreator_check_prerequisites() {
89
$prerequisitesSuccess = false;
90
}
91
92
- $fi = new FilesystemIterator(__DIR__ . '/../', FilesystemIterator::SKIP_DOTS);
93
- if (iterator_count($fi) < 1) {
+ $fi = new FilesystemIterator(__DIR__ . '/data/', FilesystemIterator::SKIP_DOTS);
+ if (iterator_count($fi) < 2) {
94
+ // There is index.html at least in the directory, then 2 files must estxist
95
+ // to validate the existence of data files
96
echo "You must run vendor/bin/robo build:fa-data in the directory of the plugin";
97
98
0 commit comments