mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: error message
This commit is contained in:
		| @@ -28,8 +28,12 @@ class ThemeController extends Controller | ||||
|         } | ||||
|  | ||||
|         $data = var_export($data, 1); | ||||
|         if (!File::put(base_path() . "/config/theme/{$themeName}.php", "<?php\n return $data ;")) { | ||||
|             abort(500, "{$themeName}初始化失败"); | ||||
|         try { | ||||
|             if (!File::put(base_path() . "/config/theme/{$themeName}.php", "<?php\n return $data ;")) { | ||||
|                 abort(500, "{$themeName}初始化失败"); | ||||
|             } | ||||
|         } catch (\Exception $e) { | ||||
|             abort(500, '请检查V2Board目录权限'); | ||||
|         } | ||||
|  | ||||
|         try { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user