*/
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.
use Friendica\Core\Config;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\Strings;
require_once 'view/theme/frio/php/PHPColors/Color.php';
// 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;