ExtensionInfo for user config
This commit is contained in:
		
							parent
							
								
									b43e425f95
								
							
						
					
					
						commit
						de68691fc3
					
				
							
								
								
									
										21
									
								
								ext/user_config/info.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								ext/user_config/info.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | |||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  |  * Name: User-specific settings | ||||||
|  |  * Author: Matthew Barbour <matthew@darkholme.net> | ||||||
|  |  * Description: Provides system-wide support for user-specific settings | ||||||
|  |  * Visibility: admin | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | class UserConfigInfo extends ExtensionInfo | ||||||
|  | { | ||||||
|  |     public const KEY = "user_config"; | ||||||
|  | 
 | ||||||
|  |     public $key = self::KEY; | ||||||
|  |     public $name = "User-specific settings"; | ||||||
|  |     public $authors = ["Matthew Barbour"=>"matthew@darkholme.net"]; | ||||||
|  |     public $license = self::LICENSE_WTFPL; | ||||||
|  |     public $description = "Provides system-wide support for user-specific settings"; | ||||||
|  |     public $visibility = self::VISIBLE_ADMIN; | ||||||
|  |     public $core = true; | ||||||
|  | } | ||||||
| @ -1,10 +1,4 @@ | |||||||
| <?php | <?php | ||||||
| /* |  | ||||||
|  * Name: User-specific settings |  | ||||||
|  * Author: Matthew Barbour <matthew@darkholme.net> |  | ||||||
|  * Description: Provides system-wide support for user-specific settings |  | ||||||
|  * Visibility: admin |  | ||||||
|  */ |  | ||||||
| 
 | 
 | ||||||
| /** @var $user_config Config */ | /** @var $user_config Config */ | ||||||
| global $user_config; | global $user_config; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user