Fixed: Deprecated in html.php line 133
This commit is contained in:
parent
86435d65f8
commit
a44e1986f4
|
@ -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/'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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/'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue