Skip to content

Commit d955e50

Browse files
committed
Fix plugin installation where files are missing; fixes #158
1 parent f5b247c commit d955e50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/type.class.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,9 @@ static function install(Migration $migration) {
19561956
$migration->addField($table, "use_plugin_simcard", "bool");
19571957
$migration->migrationOneTable($table);
19581958

1959+
//If files are missing, recreate them!
1960+
self::checkClassAndFilesForItemType();
1961+
19591962
// Migrate notepad data
19601963
$allGenericObjectTypes = PluginGenericobjectType::getTypes(true);
19611964

@@ -2012,9 +2015,6 @@ static function install(Migration $migration) {
20122015
}
20132016

20142017
self::singularTypes();
2015-
2016-
//If files are missing, recreate them!
2017-
self::checkClassAndFilesForItemType();
20182018
}
20192019

20202020

0 commit comments

Comments
 (0)