Skip to content
Snippets Groups Projects
Commit fa514b8a authored by Olav Morken's avatar Olav Morken
Browse files

Session: Remove $allowcreate parameter from getInstance().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@570 44740490-163a-0410-bde0-09ae8108e29a
parent edc76182
No related branches found
No related tags found
No related merge requests found
......@@ -105,10 +105,9 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
/**
* Retrieves the current session. Will create a new session if there isn't a session.
*
* @param $allowcreate Set this to FALSE to disable creation of new sessions. TRUE by default.
* @return The current session.
*/
public static function getInstance($allowcreate = TRUE) {
public static function getInstance() {
/* Check if we already have initialized the session. */
if (isset(self::$instance)) {
......@@ -127,12 +126,6 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
}
if(!$allowcreate) {
/* We aren't allowed to create a new session - return NULL. */
return NULL;
}
/* Create a new session. */
self::$instance = new SimpleSAML_Session();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment