-
Notifications
You must be signed in to change notification settings - Fork 37
/
install.php
37 lines (28 loc) · 1.05 KB
/
install.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @var rex_addon $this
* @psalm-scope-this rex_addon
*/
rex_yform_manager_table::deleteCache();
$content = rex_file::get(rex_path::addon('ycom', 'install/tablesets/yform_user.json'));
if (is_string($content) && '' !== $content) {
// vorher noch ycom_auth_password einbinden, da bei Install diese nicht bekannt ist.
if (!class_exists('rex_yform_value_ycom_auth_password')) {
include rex_path::addon('ycom', 'plugins/auth/lib/yform/value/ycom_auth_password.php');
}
rex_yform_manager_table_api::importTablesets($content);
}
// old plugin docs still exists ? -> delete
$pluginDocs = __DIR__ . '/plugins/docs';
if (file_exists($pluginDocs)) {
rex_dir::delete($pluginDocs);
}
foreach ($this->getInstalledPlugins() as $plugin) {
// use path relative to __DIR__ to get correct path in update temp dir
$file = __DIR__ . '/plugins/' . $plugin->getName() . '/install.php';
if (file_exists($file)) {
$plugin->includeFile($file);
}
}
// rex_yform_manager_table_api::generateTablesAndFields();
rex_delete_cache();