Update PostgreSQL DB libs for PHP 8.1, update PHP version check
PHP version check now works with only max too, if called with (null, '1.2.3') then php version will be checked <= 1.2.3 Debug Support has a to string print method printToString which tries to print all types of var content as string (bool, int, float, resource, object, etc) Debug Support printAr supports ##HTMLPRE## style too (flag true) DB/IO + PgSQL is changed from is_resource check to "false" check to be compatible with new PHP 8.1 pgsql connect interface where all resources are changed to objects PgSql\Connect|Resource|...
This commit is contained in:
@@ -25,10 +25,14 @@ namespace CoreLibs\Template;
|
||||
// HARD CODED path:
|
||||
// __DIR__: lib/CoreLibs/Template/
|
||||
// smarty located in lib/Smarty/
|
||||
// require_once(__DIR__ . '/../../Smarty/Smarty.class.php');
|
||||
require_once(__DIR__ . '/../../Smarty/SmartyBC.class.php');
|
||||
// So it doesn't start looking around in the wrong naemspace as smarty doesn't have one
|
||||
// use Smarty;
|
||||
use SmartyBC;
|
||||
|
||||
// technically this can be Smarty
|
||||
// class SmartyExtend extends Smarty
|
||||
class SmartyExtend extends SmartyBC
|
||||
{
|
||||
// internal translation engine
|
||||
@@ -170,8 +174,6 @@ class SmartyExtend extends SmartyBC
|
||||
$this->setLangEncoding();
|
||||
// iinit lang
|
||||
$this->l10n = new \CoreLibs\Language\L10n($this->lang);
|
||||
// variable variable register
|
||||
// $this->register_modifier('getvar', [&$this, 'get_template_vars']);
|
||||
/** @phpstan-ignore-next-line */
|
||||
$this->registerPlugin('modifier', 'getvar', [&$this, 'get_template_vars']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user