Unverified Commit d01108dd authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:tractor: fix(session) Make sure session::get and session::global_get are the same thing

issue #6024
Showing with 9 additions and 11 deletions
+9 -11
...@@ -66,22 +66,12 @@ class session { ...@@ -66,22 +66,12 @@ class session {
static::set($name, $value); static::set($name, $value);
} }
/*!
* \brief Accessor of a session
*
* \param string $name Name of the session
*/
public static function get ($name)
{
return $_SESSION[$name];
}
/*! /*!
* \brief Accessor of a session var * \brief Accessor of a session var
* *
* \param string $name Name of the session var * \param string $name Name of the session var
*/ */
public static function global_get($name) public static function get ($name)
{ {
if (isset($_SESSION[$name])) { if (isset($_SESSION[$name])) {
return $_SESSION[$name]; return $_SESSION[$name];
...@@ -90,6 +80,14 @@ class session { ...@@ -90,6 +80,14 @@ class session {
} }
} }
/*!
* \brief Deprecated
*/
public static function global_get ($name)
{
return static::get($name);
}
/*! /*!
* \brief Accessor of a session var by reference * \brief Accessor of a session var by reference
* *
......
  • SonarQube analysis reported 1 issue

    • :arrow_down_small: 1 minor

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :arrow_down_small: Rename class "tabs_configInLdap" to match the regular expression ^[a-zA-Z][a-zA-Z0-9]*$. :blue_book:

    By Ghost User on 2019-08-28T12:59:50 (imported from GitLab)

  • bmortier @bmortier

    mentioned in issue #6003

    By coudot on 2020-09-30T10:27:48 (imported from GitLab)

    ·

    mentioned in issue #6003

    By coudot on 2020-09-30T10:27:48 (imported from GitLab)

    Toggle commit list
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