Verified Commit 8cdc2aaa authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(php8.2) - progression

Progression
No related merge requests found
Showing with 9 additions and 3 deletions
+9 -3
......@@ -83,6 +83,10 @@ class config
}
}
/**
* Note: Magic method allowing to declare what needs to be serialized - E.g required for session_regenerate_id().
* @return array
*/
public function __serialize (): array
{
return [
......@@ -96,6 +100,11 @@ class config
];
}
/**
* @param array $data
* @return void
* Note : Magic method allowing to regenerate required data set in $_SESSION during restoration.
*/
public function __unserialize(array $data): void
{
$this->config_found = $data['config_found'];
......
......@@ -335,9 +335,6 @@ $smarty->registerPlugin('modifier', 'base64_encode', 'base64_encode');
# It should not require registration as it is put in the plugins folder of smarty
#$smarty->registerPlugin('function', 'filePath', 'smarty_function_filePath');
# Deactivate php process within smarty template
$smarty->allow_php = false;
/* Check for SSL connection */
$ssl = '';
if (!URL::sslOn()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment