Skip to content

Commit

Permalink
Update AdminController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
0oVicero0 authored Nov 17, 2018
1 parent 6c451ca commit 0cdbd6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ function settings(){
if($_POST){

config('site_name',$_POST['site_name']);
config('title_name',$_POST['title_name']);
config('style',$_POST['style']);

config('onedrive_root',get_absolute_path($_POST['onedrive_root']));

config('cache_type',$_POST['cache_type']);
config('cache_expire_time',intval($_POST['cache_expire_time']));
config('page_item',intval($_POST['page_item']));

$_POST['root_path'] = empty($_POST['root_path'])?'?':'';
config('root_path',$_POST['root_path']);
Expand Down

0 comments on commit 0cdbd6a

Please sign in to comment.