change dabestaniha to mahak
This commit is contained in:
+3
-3
@@ -27,14 +27,14 @@ function setup_configs(): void
|
||||
$configs[basename($configs_file, '.php')] = include $configs_file;
|
||||
}
|
||||
|
||||
define("DA_CASHED_CONFIG", $configs);
|
||||
define("MAHAK_CASHED_CONFIG", $configs);
|
||||
}
|
||||
setup_configs();
|
||||
|
||||
if (!function_exists('config')) {
|
||||
function config(string $key, ?string $default = null): null|string|array
|
||||
{
|
||||
$value = DA_CASHED_CONFIG;
|
||||
$value = MAHAK_CASHED_CONFIG;
|
||||
foreach (explode('.', $key) as $key) {
|
||||
$value = $value[$key] ?? $default;
|
||||
}
|
||||
@@ -46,6 +46,6 @@ if (!function_exists('config')) {
|
||||
if (!function_exists('get_configured_option')) {
|
||||
function get_configured_option(string $key, ?string $default = null): null|string|array
|
||||
{
|
||||
return get_option(config("da.options.$key"), $default);
|
||||
return get_option(config("mahak.options.$key"), $default);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user