From 6e2880c6799e5c98e41ea40e1bdbac7bfe6ae326 Mon Sep 17 00:00:00 2001
From: nupplaPhil <admin@philipp.info>
Date: Sat, 18 Jan 2020 15:59:01 +0100
Subject: [PATCH] Move PConfig::load() to DI::pConfig()->load()

---
 src/Core/PConfig.php      | 13 -------------
 view/theme/frio/style.php |  3 ++-
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php
index 06b0140097..7d5d8e553b 100644
--- a/src/Core/PConfig.php
+++ b/src/Core/PConfig.php
@@ -19,19 +19,6 @@ use Friendica\DI;
  */
 class PConfig
 {
-	/**
-	 * @brief Loads all configuration values of a user's config family into a cached storage.
-	 *
-	 * @param int    $uid The user_id
-	 * @param string $cat The category of the configuration value
-	 *
-	 * @return void
-	 */
-	public static function load(int $uid, string $cat)
-	{
-		DI::pConfig()->load($uid, $cat);
-	}
-
 	/**
 	 * @brief Get a particular user's config variable given the category name
 	 * ($cat) and a key.
diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php
index c39e672dfa..919c3806e4 100644
--- a/view/theme/frio/style.php
+++ b/view/theme/frio/style.php
@@ -5,6 +5,7 @@
 
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
+use Friendica\DI;
 use Friendica\Util\Strings;
 
 require_once 'view/theme/frio/php/PHPColors/Color.php';
@@ -37,7 +38,7 @@ $login_bg_color = $login_bg_color ?: '#ededed';
 // Get the UID of the profile owner.
 $uid = $_REQUEST['puid'] ?? 0;
 if ($uid) {
-	PConfig::load($uid, 'frio');
+	DI::pConfig()->load($uid, 'frio');
 
 	// Only override display settings that have actually been set
 	$scheme           = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema')) ?: $scheme;
-- 
2.39.5