change dabestaniha to mahak

This commit is contained in:
2025-07-20 14:46:29 +03:30
parent 23854e1d98
commit ad3a70973d
9 changed files with 64 additions and 64 deletions
+3 -3
View File
@@ -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);
}
}