From db89ff2abe090e1b0fa63d2562a8f5a20c989f8b Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 15 Sep 2025 08:34:15 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/app.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app.php b/src/app.php index a61a84a..2a536c7 100644 --- a/src/app.php +++ b/src/app.php @@ -103,12 +103,10 @@ class app { return unserialize($params); } - static function get_profile(): string { - return self::get()->getProfile(); - } - - static function is_production_mode(): bool { - return self::get()->isProductionMode(); + static function get_profile(?bool &$productionMode=null): string { + $app = self::get(); + $productionMode = $app->isProductionMode(); + return $app->getProfile(); } static function set_profile(?string $profile=null, ?bool $productionMode=null): void {