mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 07:57:03 +02:00
rewrote php session variables
This commit is contained in:
@ -10,7 +10,7 @@ class ControllerMessageNote extends Controller {
|
||||
$this->template = "message/note.tpl";
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
|
||||
$session = Registry::get('session');
|
||||
$request = Registry::get('request');
|
||||
$db = Registry::get('db');
|
||||
|
||||
@ -20,7 +20,7 @@ class ControllerMessageNote extends Controller {
|
||||
if(isset($this->request->post['note']) && isset($this->request->post['id'])) {
|
||||
|
||||
if($this->model_search_search->check_your_permission_by_id($this->request->post['id']) == 1) {
|
||||
$this->model_search_message->add_message_note($this->request->post['id'], $_SESSION['uid'], urldecode($this->request->post['note']));
|
||||
$this->model_search_message->add_message_note($this->request->post['id'], $session->get("uid"), urldecode($this->request->post['note']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user