From da43b32ff00e2a7cb9fb78722fa12759d71e0d58 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 21 Jan 2025 20:43:59 +0100 Subject: [PATCH] Nothing important, code refactor --- plugins/account-create-hint.json | 2 +- plugins/account-create-hint/hint.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/account-create-hint.json b/plugins/account-create-hint.json index 87734108..3bf20037 100644 --- a/plugins/account-create-hint.json +++ b/plugins/account-create-hint.json @@ -1,6 +1,6 @@ { "name": "create-account-hint", - "description": "This plugin display text 'To play on Forgotten you need an account. All you have to do to create your new account is to enter an account name, password, country and your email address. Also you have to agree to the terms presented below. If you have done so, your account name will be shown on the following page and your account password will be sent to your email address along with further instructions. If you do not receive the email with your password, please check your spam filter.' on the create account page. Be careful when uninstalling this!", + "description": "This plugin display text 'To play on Forgotten you need an account. All you have to do to create your new account is to enter an account name, password, country and your email address. Also you have to agree to the terms presented below. If you have done so, your account name will be shown on the following page and your account password will be sent to your email address along with further instructions. If you do not receive the email with your password, please check your spam filter.' on the create account page.", "version": "1.0", "author": "slawkens", "contact": "slawkens@gmail.com", diff --git a/plugins/account-create-hint/hint.php b/plugins/account-create-hint/hint.php index b7ff8a7a..d1eab9ad 100644 --- a/plugins/account-create-hint/hint.php +++ b/plugins/account-create-hint/hint.php @@ -9,7 +9,4 @@ */ defined('MYAAC') or die('Direct access not allowed!'); -global $twig_loader; -$twig_loader->prependPath(BASE . 'plugins/account-create-hint'); - -$twig->display('hint.html.twig'); +$twig->display('account-create-hint/hint.html.twig');