mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Add default values for settings (#455)
* add default values for settings * more default values * more default settings and labels resource * mv locale to options
This commit is contained in:
		| @@ -72,6 +72,11 @@ func License(name string) ([]byte, error) { | ||||
| 	return fileFromDir(path.Join("license", name)) | ||||
| } | ||||
|  | ||||
| // Labels eads the content of a specific labels from static or custom path. | ||||
| func Labels(name string) ([]byte, error) { | ||||
| 	return fileFromDir(path.Join("label", name)) | ||||
| } | ||||
|  | ||||
| // fileFromDir is a helper to read files from bindata or custom path. | ||||
| func fileFromDir(name string) ([]byte, error) { | ||||
| 	customPath := path.Join(setting.CustomPath, "options", name) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user