]> Kevux Git Server - koopa/commitdiff
Bugfix: incorrect session name in use
authorKevin Day <thekevinday@gmail.com>
Tue, 2 May 2017 06:00:50 +0000 (01:00 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 2 May 2017 06:00:50 +0000 (01:00 -0500)
common/standard/classes/standard_path.php
common/standard/paths/u/dashboard.php
common/standard/paths/u/login.php
program/reservation/index.php

index 6b503eb6e2c603817db70463fc631d4205cd26af..973f34510b3f3626fdc0b8bb962d792511a23a2e 100644 (file)
@@ -38,7 +38,6 @@ class c_standard_path extends c_base_path {
 
   protected $use_p_tags = NULL;
   protected $base_path  = NULL;
-  protected $user_name  = NULL;
 
 
   /**
@@ -49,7 +48,6 @@ class c_standard_path extends c_base_path {
 
     $this->use_p_tags = FALSE;
     $this->base_path  = '';
-    $this->user_name  = '';
   }
 
   /**
@@ -58,7 +56,6 @@ class c_standard_path extends c_base_path {
   public function __destruct() {
     unset($this->use_p_tags);
     unset($this->base_path);
-    unset($this->user_name);
 
     parent::__destruct();
   }
@@ -77,10 +74,6 @@ class c_standard_path extends c_base_path {
     if (isset($settings['base_path']) && is_string($settings['base_path'])) {
       $this->base_path = $settings['base_path'];
     }
-
-    if (isset($settings['database_user']) && is_string($settings['database_user'])) {
-      $this->user_name = $settings['database_user'];
-    }
   }
 
   /**
index 008f71bc6e6457945f0de2da14745a8ca6494458..caf7b7c3666bc2991ed20e523138c5d36a44fafb 100644 (file)
@@ -40,7 +40,7 @@ class c_standard_path_user_dashboard extends c_standard_path {
       $roles = $current_user->get_roles();
     }
 
-    $wrapper->set_tag($this->pr_create_tag_text_block($this->pr_get_text(2, array('@{user}' => $this->user_name))));
+    $wrapper->set_tag($this->pr_create_tag_text_block($this->pr_get_text(2, array('@{user}' => $session->get_name()->get_value_exact()))));
 
     $block = $this->pr_create_tag_text_block(NULL);
     $block->set_tag($this->pr_create_tag_text(3));
index 4bcfc38268d857a7de7f45383215d66ba04dcedb..75186c78933c84311238453a74f4fc87eaf9b558 100644 (file)
@@ -67,7 +67,7 @@ class c_standard_path_user_login extends c_standard_path {
 
         // Content
         $wrapper->set_tag($this->pr_create_tag_title(3));
-        $wrapper->set_tag($this->pr_create_tag_text_block(4, array('@{user}' => $this->user_name)));
+        $wrapper->set_tag($this->pr_create_tag_text_block(4, array('@{user}' => $session->get_name()->get_value_exact())));
 
         $wrapper->set_tag($this->pr_create_tag_break());
 
index 6182d83fe0854590974f3d99da1b7adc78f928fe..478ac8a73b261e275c21a13ce56def6695857b39 100644 (file)
@@ -22,10 +22,7 @@ class c_reservation_index extends c_standard_index {
     $this->settings['database_name']        = 'reservation';
     $this->settings['database_user_public'] = 'u_reservation_public';
 
-    $this->settings['database_name'] = 'reservation';
-    $this->settings['database_user'] = 'u_reservation_public';
-
-    $this->settings['session_system']   = 'reservation';
+    $this->settings['session_system'] = 'reservation';
 
     $this->settings['cookie_name'] = 'reservation-session';
   }