|
|
@ -5,7 +5,7 @@ use function _\remove;
|
|
|
|
class Settings
|
|
|
|
class Settings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private $folks;
|
|
|
|
private $folks;
|
|
|
|
private $tags;
|
|
|
|
private static $tags;
|
|
|
|
private $themes = [];
|
|
|
|
private $themes = [];
|
|
|
|
private static $settings;
|
|
|
|
private static $settings;
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ class Settings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//gets all settings files and converts to php objects
|
|
|
|
//gets all settings files and converts to php objects
|
|
|
|
$this->folks = json_decode(file_get_contents("../config/folks.json"), true);
|
|
|
|
$this->folks = json_decode(file_get_contents("../config/folks.json"), true);
|
|
|
|
$this->tags = json_decode(file_get_contents("../config/tags.json"), true);
|
|
|
|
self::$tags = json_decode(file_get_contents("../config/tags.json"), true);
|
|
|
|
self::$settings = json_decode(
|
|
|
|
self::$settings = json_decode(
|
|
|
|
file_get_contents("../config/settings.json"),
|
|
|
|
file_get_contents("../config/settings.json"),
|
|
|
|
true
|
|
|
|
true
|
|
|
@ -123,6 +123,11 @@ class Settings
|
|
|
|
return self::$settings;
|
|
|
|
return self::$settings;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static function getTags()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return self::$tags;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static function updateGlobalData($key, $data)
|
|
|
|
public static function updateGlobalData($key, $data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$settings = self::$settings;
|
|
|
|
$settings = self::$settings;
|
|
|
|