[Clublog] If downloading exceptions fails from the clublog cdn try the cloudlog backup
这个提交包含在:
		
							父节点
							
								
									c971807f02
								
							
						
					
					
						当前提交
						1498f74072
					
				
					共有  1 个文件被更改,包括 12 次插入 和 2 次删除
				
			
		|  | @ -178,8 +178,18 @@ class Update extends CI_Controller { | ||||||
| 		 | 		 | ||||||
| 		$gz = gzopen($url, 'r'); | 		$gz = gzopen($url, 'r'); | ||||||
| 		if ($gz === FALSE) { | 		if ($gz === FALSE) { | ||||||
| 			$this->update_status("Something went wrong with fetching the cty.xml file."); |             // If the download from clublog.org fails, try cloudlog.org CDN.
 | ||||||
|  |             $url = "https://cdn.cloudlog.org/clublogxml.gz"; | ||||||
|  |             $gz = gzopen($url, 'r'); | ||||||
|  | 
 | ||||||
|  |             // Log failure to log file
 | ||||||
|  |             log_message('info', 'Failed to download cty.xml from clublog.org, trying cloudlog.org CDN'); | ||||||
|  | 
 | ||||||
|  |             if ($gz === FALSE) { | ||||||
|  |                 $this->update_status("FAILED: Could not download from clublog.org or cloudlog.org"); | ||||||
|  |                 log_message('error', 'FAILED: Could not download exceptions from clublog.org or cloudlog.org'); | ||||||
|                 return; |                 return; | ||||||
|  |             } | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		$data = ""; | 		$data = ""; | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用