We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f483ddb commit 1195d5bCopy full SHA for 1195d5b
inc/formlist.class.php
@@ -49,7 +49,11 @@ public static function getTypeName($nb = 0) {
49
static function getMenuContent() {
50
$menu = parent::getMenuContent();
51
$menu['title'] = static::getTypeName(2);
52
- $menu['page'] = FORMCREATOR_ROOTDOC . '/front/formlist.php';
+ if (method_exists(Plugin::class, 'getWebDir')) {
53
+ $menu['page'] = '/' . Plugin::getWebDir('formcreator', false) . '/front/formlist.php';
54
+ } else {
55
+ $menu['page'] = '/plugins/formcreator/front/formlist.php';
56
+ }
57
$menu['icon'] = 'fas fa-edit';
58
$image = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
59
title="' . __('Forms waiting for validation', 'formcreator') . '"
0 commit comments