mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
rewrote php session variables
This commit is contained in:
@ -9,13 +9,15 @@ class ControllerCommonError extends Controller {
|
||||
$this->template = "common/error.tpl";
|
||||
$this->layout = "common/layout";
|
||||
|
||||
$session = Registry::get('session');
|
||||
|
||||
$this->document->title = $this->data['text_error'];
|
||||
|
||||
$this->data['errortitle'] = $this->data['text_error'];
|
||||
|
||||
if(isset($_SESSION['error'])){
|
||||
$this->data['errorstring'] = $_SESSION['error'];
|
||||
unset($_SESSION['error']);
|
||||
if($session->get("error")) {
|
||||
$this->data['errorstring'] = $session->get("error");
|
||||
$session->set("error", "");
|
||||
}
|
||||
else {
|
||||
$this->data['errorstring'] = "this is the errorstring";
|
||||
|
Reference in New Issue
Block a user