Fix in register plugin
parent
8eae3cf124
commit
014ef05d05
|
|
@ -20,7 +20,8 @@ define('REGISTRATIONS_MAIN_MENU_POSITION', 30);
|
||||||
register_hook('main_public_menu', function($ctx) {
|
register_hook('main_public_menu', function($ctx) {
|
||||||
$section = defined('REGISTRATIONS_MAIN_MENU_SECTION') ? REGISTRATIONS_MAIN_MENU_SECTION : 'main';
|
$section = defined('REGISTRATIONS_MAIN_MENU_SECTION') ? REGISTRATIONS_MAIN_MENU_SECTION : 'main';
|
||||||
$position = defined('REGISTRATIONS_MAIN_MENU_POSITION') ? REGISTRATIONS_MAIN_MENU_POSITION : 100;
|
$position = defined('REGISTRATIONS_MAIN_MENU_POSITION') ? REGISTRATIONS_MAIN_MENU_POSITION : 100;
|
||||||
echo " <button class=\"btn modern-header-btn\" onclick=\"window.location.href='" . htmlspecialchars($app_root) . "?page=register'\">
|
$appRoot = isset($ctx['app_root']) ? htmlspecialchars($ctx['app_root'], ENT_QUOTES, 'UTF-8') : '';
|
||||||
|
echo " <button class=\"btn modern-header-btn\" onclick=\"window.location.href='" . $appRoot . "?page=register'\">
|
||||||
<i class=\"fas fa-user-edit me-2\"></i>Register
|
<i class=\"fas fa-user-edit me-2\"></i>Register
|
||||||
</button>";
|
</button>";
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue