Verified Commit 2713ed39 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: (setup) - fixes setup p1

backup and some fixes in setup.
No related merge requests found
Showing with 25 additions and 5 deletions
+25 -5
...@@ -59,11 +59,7 @@ ini_set("session.gc_maxlifetime", 24 * 60 * 60); ...@@ -59,11 +59,7 @@ ini_set("session.gc_maxlifetime", 24 * 60 * 60);
session::start(); session::start();
session::set('DEBUGLEVEL', 0); session::set('DEBUGLEVEL', 0);
try { CSRFProtection::check();
CSRFProtection::check();
} catch (FusionDirectoryException $e) {
}
/* Attribute initialization, reset errors */ /* Attribute initialization, reset errors */
reset_errors(); reset_errors();
......
...@@ -42,6 +42,30 @@ class setupStep extends simplePlugin ...@@ -42,6 +42,30 @@ class setupStep extends simplePlugin
$this->update_strings(); $this->update_strings();
} }
public function __serialize(): array
{
return [
's_short_name' => $this->s_short_name,
's_title' => $this->s_title,
's_description' => $this->s_description,
'is_active' => $this->is_active,
'is_enabled' => $this->is_enabled,
'is_completed' => $this->is_completed,
'header_image' => $this->header_image,
];
}
public function __unserialize(array $data): void
{
$this->s_short_name = $data['s_short_name'] ?? 'Still undefined';
$this->s_title = $data['s_title'] ?? 'Still undefined';
$this->s_description = $data['s_description'] ?? 'Still undefined';
$this->is_active = $data['is_active'] ?? FALSE;
$this->is_enabled = $data['is_enabled'] ?? FALSE;
$this->is_completed = $data['is_completed'] ?? FALSE;
$this->header_image = $data['header_image'] ?? '';
}
function update_strings () function update_strings ()
{ {
die('abstract method'); die('abstract method');
......
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