mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	remove deprecated code for Gogs compitable (#2041)
This commit is contained in:
		@@ -585,15 +585,7 @@ func NewContext() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	CustomPath = os.Getenv("GITEA_CUSTOM")
 | 
						CustomPath = os.Getenv("GITEA_CUSTOM")
 | 
				
			||||||
	if len(CustomPath) == 0 {
 | 
						if len(CustomPath) == 0 {
 | 
				
			||||||
		// For backward compatibility
 | 
							CustomPath = workDir + "/custom"
 | 
				
			||||||
		// TODO: drop in 1.1.0 ?
 | 
					 | 
				
			||||||
		CustomPath = os.Getenv("GOGS_CUSTOM")
 | 
					 | 
				
			||||||
		if len(CustomPath) == 0 {
 | 
					 | 
				
			||||||
			CustomPath = workDir + "/custom"
 | 
					 | 
				
			||||||
		} else {
 | 
					 | 
				
			||||||
			log.Warn(`Usage of GOGS_CUSTOM is deprecated and will be *removed* in a future release,
 | 
					 | 
				
			||||||
please consider changing to GITEA_CUSTOM`)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if len(CustomPID) > 0 {
 | 
						if len(CustomPID) > 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user