mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	transfer code from update controller to updater class
This commit is contained in:
		| @ -88,16 +88,6 @@ class UpdateController extends Controller | ||||
|  | ||||
|         $json = Updater::checkForUpdate(Setting::getSetting('version')); | ||||
|  | ||||
|         if ($json->success) { | ||||
|             $extensions = $json->version->extensions; | ||||
|             $data = []; | ||||
|             foreach ($extensions as $extension) { | ||||
|                 $data[$extension] = phpversion($extension); | ||||
|             } | ||||
|             $data['php'] = phpversion(); | ||||
|             $json->version->extensions = $data; | ||||
|         } | ||||
|  | ||||
|         return response()->json($json); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user