Unverified Commit b7428614 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
......@@ -67,22 +67,12 @@ class session
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
*
* \param string $name Name of the session var
*/
public static function global_get ($name)
public static function get ($name)
{
if (isset($_SESSION[$name])) {
return $_SESSION[$name];
......@@ -91,6 +81,14 @@ class session
}
}
/*!
* \brief Deprecated
*/
public static function global_get ($name)
{
return static::get($name);
}
/*!
* \brief Accessor of a session var by reference
*
......
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