_Deprecated: Using php-function "stripslashes" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in .../includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_privatemodifier.php on line 114
_Deprecated: Using php-function "htmlspecialchars" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in .../includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_privatemodifier.php on line 114
I create a function that uses Smarty::registerPlugin called smarty_htmlspecialchars and within it returns htmlspecialchars.
Another function called smarty_stripslashes that returns stripslashes .
Motivation and Context
The errors appeared to me in a fork that I am developing with the aim of translating the entire website into Spanish. When I solved them I thought it was a good idea to send the solution.
How Has This Been Tested?
I am using these changes on my own website, I allowed a few days to check for any further errors.
https://sb.aoc-gamers.com
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Resolved warning for php8.1:
_Deprecated: Using php-function "stripslashes" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in .../includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_privatemodifier.php on line 114
_Deprecated: Using php-function "htmlspecialchars" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in .../includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_privatemodifier.php on line 114
I create a function that uses Smarty::registerPlugin called smarty_htmlspecialchars and within it returns htmlspecialchars.
Another function called smarty_stripslashes that returns stripslashes .
Motivation and Context
The errors appeared to me in a fork that I am developing with the aim of translating the entire website into Spanish. When I solved them I thought it was a good idea to send the solution.
How Has This Been Tested?
I am using these changes on my own website, I allowed a few days to check for any further errors. https://sb.aoc-gamers.com
Screenshots (if appropriate):
Types of changes
Checklist: