Skip to content

Commit

Permalink
fix: other bad redirections
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 15, 2020
1 parent 3ba9748 commit 6869b64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion inc/formlist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function getTypeName($nb = 0) {
static function getMenuContent() {
$menu = parent::getMenuContent();
$menu['title'] = static::getTypeName(2);
$menu['page'] = FORMCREATOR_ROOTDOC . '/front/formlist.php';
$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
10 changes: 5 additions & 5 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ function plugin_init_formcreator() {
if (Session::haveRight('entity', UPDATE)) {
$PLUGIN_HOOKS['config_page']['formcreator'] = 'front/form.php';
$PLUGIN_HOOKS['menu_toadd']['formcreator']['admin'] = 'PluginFormcreatorForm';
$links['config'] = FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.php';
$links['add'] =FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.form.php';
$links['config'] = FORMCREATOR_ROOTDOC . '/front/form.php';
$links['add'] = FORMCREATOR_ROOTDOC . '/front/form.form.php';
}
$img = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
title="' . __('Forms waiting for validation', 'formcreator') . '" alt="Waiting forms list" />';

$links[$img] = FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/formanswer.php';
$links[$img] = FORMCREATOR_ROOTDOC . '/front/formanswer.php';

// Set options for pages (title, links, buttons...)
$links['search'] = FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/formlist.php';
$links['search'] = FORMCREATOR_ROOTDOC . '/front/formlist.php';
$PLUGIN_HOOKS['submenu_entry']['formcreator']['options'] = [
'config' => ['title' => __('Setup'),
'page' => FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.php',
'page' => FORMCREATOR_ROOTDOC . '/front/form.php',
'links' => $links],
'options' => ['title' => _n('Form', 'Forms', 2, 'formcreator'),
'links' => $links],
Expand Down

0 comments on commit 6869b64

Please sign in to comment.