|
@@ -44,6 +44,15 @@ class Version extends Core
|
|
|
$i = 0;
|
|
|
foreach ($tabbar as $k => $v) {
|
|
|
$tab[$i]['pagePath'] = $pageInfo[$v['page_id']]['pagepath'];
|
|
|
+ if ($i == 0) {
|
|
|
+
|
|
|
+ $key = array_search($tab[$i]['pagePath'], $page);
|
|
|
+ if ($key && isset($page[$key])) {
|
|
|
+ unset($page[$key]);
|
|
|
+ }
|
|
|
+ */
|
|
|
+ array_unshift($page, $tab[$i]['pagePath']);
|
|
|
+ }
|
|
|
$tab[$i]['text'] = $v['name'];
|
|
|
$tab[$i]['iconPath'] = $v['iconpath'];
|
|
|
$tab[$i]['selectedIconPath'] = $v['selectediconpath'];
|