4.19.1 SP1 Smarty Deprecated notices in error log

The app/lib/vendor/smarty/smarty/src/Smarty.php script, line 808, includes:

trigger_error('Using Smarty::addPluginsDir() to load plugins is deprecated and will be ' .
'removed in a future release. Use Smarty::addExtension() to add an extension or Smarty::registerPlugin to ' .
'quickly register a plugin using a callback function.', E_USER_DEPRECATED);

And line 827 includes:

trigger_error('Using Smarty::getPluginsDir() is deprecated and will be ' .
'removed in a future release. It will always return an empty array.', E_USER_DEPRECATED);

So… every admin page enters 4 lines into the php error log, and every store page enters no less than 3 lines into the php error log.
I’ve tried suppressing USER_DEPRECATED errors in php.ini, with no joy.

I finally edited the config.local.php script and changed error_reporting to:

error_reporting(E_ALL ^ E_USER_DEPRECATED);

and the logging stopped.
I hope the deprecated “addPluginsDir” and “getPluginsDir” functions will be removed in the next version of CS-Cart, and for anyone else who finds their php error log getting enormously bloated, this is a fix.

Once these functions have been removed, the third-party add-ons that currently trigger them will break the installation completely by trying to call a non-existent method. You will therefore need to contact the developers of these add-ons.