ExtensionInfo for user config

This commit is contained in:
Matthew Barbour 2019-08-07 15:18:37 -05:00 committed by Shish
parent b43e425f95
commit de68691fc3
2 changed files with 21 additions and 6 deletions

21
ext/user_config/info.php Normal file
View 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;
}

View file

@ -1,10 +1,4 @@
<?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 */
global $user_config;