Fixed: Deprecated in html.php line 133

This commit is contained in:
Roman Kelesidis 2023-03-05 12:05:09 +07:00
parent 86435d65f8
commit a44e1986f4
3 changed files with 49 additions and 46 deletions

View file

@ -59,46 +59,48 @@
if(isset($html->arr['main']))
{
$html->upd(
array(
'[cur]',
'[acp]',
'[home]',
'[js]',
'[css]',
'[img]'
),
'main',
array(
$cfg['currency'],
$cfg['http'].'acp/',
$cfg['http'],
$cfg['http'].'template/acp/js/',
$cfg['http'].'template/acp/css/',
$cfg['http'].'template/acp/images/'
),
'main'
array(
'[cur]',
'[acp]',
'[home]',
'[js]',
'[css]',
'[img]'
),
array(
$cfg['currency'],
$cfg['http'].'acp/',
$cfg['http'],
$cfg['http'].'template/acp/js/',
$cfg['http'].'template/acp/css/',
$cfg['http'].'template/acp/images/'
),
);
}
if(isset($html->arr['menu']))
{
$html->upd(
array(
'[acp]',
'[home]',
'[js]',
'[css]',
'[img]'
),
'menu',
array(
$cfg['http'].'acp/',
$cfg['http'],
$cfg['http'].'template/acp/js/',
$cfg['http'].'template/acp/css/',
$cfg['http'].'template/acp/images/'
),
'menu'
array(
'[acp]',
'[home]',
'[js]',
'[css]',
'[img]'
),
array(
$cfg['http'].'acp/',
$cfg['http'],
$cfg['http'].'template/acp/js/',
$cfg['http'].'template/acp/css/',
$cfg['http'].'template/acp/images/'
),
);
}

View file

@ -87,20 +87,21 @@
if(isset($html->arr['main']))
{
$html->upd(
array(
'[home]',
'[js]',
'[css]',
'[img]'
),
'main',
array(
$cfg['http'],
$cfg['http'].'template/js/',
$cfg['http'].'template/css/',
$cfg['http'].'template/images/'
),
'main'
array(
'[home]',
'[js]',
'[css]',
'[img]'
),
array(
$cfg['http'],
$cfg['http'].'template/js/',
$cfg['http'].'template/css/',
$cfg['http'].'template/images/'
),
);
}

View file

@ -130,7 +130,7 @@
return NULL;
}
public function upd($old = array(), $new = array(), $name)
public function upd($name, $old = array(), $new = array())
{
$this->arr[$name] = str_replace($old, $new, $this->arr[$name]);