diff --git a/system/acp/distributor.php b/system/acp/distributor.php index 2827342..3cbe8ee 100644 --- a/system/acp/distributor.php +++ b/system/acp/distributor.php @@ -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/' + ), ); } diff --git a/system/distributor.php b/system/distributor.php index 28278d0..7c3a9d9 100644 --- a/system/distributor.php +++ b/system/distributor.php @@ -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/' + ), ); } diff --git a/system/library/html.php b/system/library/html.php index de631fc..f68d376 100644 --- a/system/library/html.php +++ b/system/library/html.php @@ -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]);