<?php
-
-require_once("include/PConfig.php");
-require_once("include/Config.php");
-
/**
* @file include/config.php
*
* configurations need to be fixed as of 10/08/2011.
*/
+use \Friendica\Core\Config;
+use \Friendica\Core\PConfig;
+
/**
* @brief (Deprecated) Loads all configuration values of family into a cached storage.
*
* The category of the configuration value
* @param string $key
* The configuration key to query
- * @param boolean $instore Determines if the key already exists in the DB
+ * @param boolean $refresh
+ * If true the config is loaded from the db and not from the cache
* @return mixed Stored value or false if it does not exist
*/
-function get_config($family, $key, $instore = false) {
- return Config::get($family, $key, $instore);
+function get_config($family, $key, $refresh = false) {
+ $v = Config::get($family, $key, false, $refresh);
+ return $v;
}
/**
* The category of the configuration value
* @param string $key
* The configuration key to query
- * @param boolean $instore
- * Determines if the key already exists in the DB
+ * @param boolean $refresh
+ * If true the config is loaded from the db and not from the cache
* @return mixed Stored value or false if it does not exist
*/
-function get_pconfig($uid,$family, $key, $instore = false) {
- return PConfig::get($uid, $family, $key, $instore);
+function get_pconfig($uid, $family, $key, $refresh = false) {
+ $v = PConfig::get($uid, $family, $key, false, $refresh);
+ return $v;
}
/**