Skip to content

Commit

Permalink
fix(form): broken link to forms
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jul 16, 2020
1 parent f483ddb commit 1195d5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/formlist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
title="' . __('Forms waiting for validation', 'formcreator') . '"
Expand Down

0 comments on commit 1195d5b

Please sign in to comment.