diff --git a/inc/formlist.class.php b/inc/formlist.class.php index 7efb21656..2be2e71b5 100644 --- a/inc/formlist.class.php +++ b/inc/formlist.class.php @@ -49,7 +49,11 @@ public static function getTypeName($nb = 0) { static function getMenuContent() { $menu = parent::getMenuContent(); $menu['title'] = static::getTypeName(2); - $menu['page'] = FORMCREATOR_ROOTDOC . '/front/formlist.php'; + if (method_exists(Plugin::class, 'getWebDir')) { + $menu['page'] = '/' . Plugin::getWebDir('formcreator', false) . '/front/formlist.php'; + } else { + $menu['page'] = '/plugins/formcreator/front/formlist.php'; + } $menu['icon'] = 'fas fa-edit'; $image = '