Skip to content

Commit 6869b64

Browse files
committed
fix: other bad redirections
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 3ba9748 commit 6869b64

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

inc/formlist.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function getTypeName($nb = 0) {
4949
static function getMenuContent() {
5050
$menu = parent::getMenuContent();
5151
$menu['title'] = static::getTypeName(2);
52-
$menu['page'] = FORMCREATOR_ROOTDOC . '/front/formlist.php';
52+
$menu['page'] = '/plugins/formcreator/front/formlist.php';
5353
$menu['icon'] = 'fas fa-edit';
5454
$image = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
5555
title="' . __('Forms waiting for validation', 'formcreator') . '"

setup.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ function plugin_init_formcreator() {
223223
if (Session::haveRight('entity', UPDATE)) {
224224
$PLUGIN_HOOKS['config_page']['formcreator'] = 'front/form.php';
225225
$PLUGIN_HOOKS['menu_toadd']['formcreator']['admin'] = 'PluginFormcreatorForm';
226-
$links['config'] = FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.php';
227-
$links['add'] =FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.form.php';
226+
$links['config'] = FORMCREATOR_ROOTDOC . '/front/form.php';
227+
$links['add'] = FORMCREATOR_ROOTDOC . '/front/form.form.php';
228228
}
229229
$img = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
230230
title="' . __('Forms waiting for validation', 'formcreator') . '" alt="Waiting forms list" />';
231231

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

234234
// Set options for pages (title, links, buttons...)
235-
$links['search'] = FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/formlist.php';
235+
$links['search'] = FORMCREATOR_ROOTDOC . '/front/formlist.php';
236236
$PLUGIN_HOOKS['submenu_entry']['formcreator']['options'] = [
237237
'config' => ['title' => __('Setup'),
238-
'page' => FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/form.php',
238+
'page' => FORMCREATOR_ROOTDOC . '/front/form.php',
239239
'links' => $links],
240240
'options' => ['title' => _n('Form', 'Forms', 2, 'formcreator'),
241241
'links' => $links],

0 commit comments

Comments
 (0)