Skip to content

Commit

Permalink
add 10.4.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
lyy910203 committed Apr 11, 2024
1 parent 701b4b2 commit 30dbdfc
Show file tree
Hide file tree
Showing 9,130 changed files with 736 additions and 603 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
553 changes: 0 additions & 553 deletions 10.4.1/public/admin/template/default/js/addon.js

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,8 @@ public function download($param)
}
}

$this->pluginUpgradeAuth($module, $plugin['name']);

$this->update([
'version' => $version
], ['name' => $uuid]);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,8 @@ public function adminMenu(){

$first_menu_plugin = [];

$navs = NavModel::field('id,name,url,icon,parent_id,plugin')
$NavModel = new NavModel();
$navs = $NavModel->field('id,name,url,icon,parent_id,plugin')
->where($where)
->order('order','asc')
->select()
Expand All @@ -643,12 +644,12 @@ public function adminMenu(){
}



$urls = AuthModel::where('url', '<>', '')
$AuthModel = new AuthModel();
$urls = $AuthModel->where('url', '<>', '')
->column('url');

$adminId = get_admin_id();
$auth = AuthModel::alias('au')
$auth = $AuthModel->alias('au')
->field('au.url,au.plugin')
->leftjoin('auth_link al', 'al.auth_id=au.id')
->leftjoin('admin_role_link adrl', 'adrl.admin_role_id=al.admin_role_id')
Expand Down Expand Up @@ -697,6 +698,9 @@ public function adminMenu(){
}
if(empty($menus)){
$menus = $navs;
$menuParentIds = array_filter($NavModel->column('parent_id'));
}else{
$menuParentIds = array_filter($this->column('parent_id'));
}

$plugins = PluginModel::where('status', 1)->column('name');
Expand Down Expand Up @@ -793,7 +797,7 @@ public function adminMenu(){
}
}
foreach ($tree as $key => $value) {
if((!isset($value['child']) || empty($value['child'])) && (empty($value['url']) || $value['url']=='#')){
if((!isset($value['child']) || empty($value['child'])) && in_array($value['id'], $menuParentIds)){
unset($tree[$key]);
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function index()

$view_path = '../public/clientarea/template/'.$data['themes'].'/';

if(!file_exists($view_path.$tplName)){
if(!file_exists($view_path.$tplName.'.php')){
$view_path = '../public/clientarea/template/default/';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function index()
$view_path = '../public/web/'.$data['themes'].'/';
}

if(!file_exists($view_path.$tplName)){
if(!file_exists($view_path.$tplName.'.html')){
$theme_config=$this->themeConfig($view_path);
if(!empty($theme_config['config-parent-theme'])){
$view_path = '../public/web/'.$theme_config['config-parent-theme'].'/';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 30dbdfc

Please sign in to comment.