mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 12:57:04 +02:00
rewrote php session variables
This commit is contained in:
@ -9,6 +9,7 @@ class ControllerMessageRestore extends Controller {
|
||||
$this->template = "message/restore.tpl";
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
$session = Registry::get('session');
|
||||
$request = Registry::get('request');
|
||||
$db = Registry::get('db');
|
||||
|
||||
@ -55,7 +56,7 @@ class ControllerMessageRestore extends Controller {
|
||||
/* send the email to all the recipients of the original email if we are admin or auditor users */
|
||||
|
||||
if(Registry::get('auditor_user') == 0) {
|
||||
array_push($rcpt, $_SESSION['email']);
|
||||
array_push($rcpt, $session->get("email"));
|
||||
}
|
||||
|
||||
$this->data['data'] = $this->data['text_failed_to_restore'];
|
||||
|
Reference in New Issue
Block a user