From 0c432bd294a7c4d5fd489851b10b8e076bda395e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Go=CC=81mez?= <sergio@uco.es> Date: Mon, 4 May 2015 12:49:18 +0200 Subject: [PATCH] Removed a 'if' sentence than prevents a Store class couldn't be added if it is named with a namespace instead with the sspmod_<module>_Store_<class> way. --- lib/SimpleSAML/Store.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/SimpleSAML/Store.php b/lib/SimpleSAML/Store.php index e45d4a7fd..2ea922ddf 100644 --- a/lib/SimpleSAML/Store.php +++ b/lib/SimpleSAML/Store.php @@ -47,9 +47,6 @@ abstract class SimpleSAML_Store { self::$instance = new SimpleSAML_Store_SQL(); break; default: - if (strpos($storeType, ':') === FALSE) { - throw new SimpleSAML_Error_Exception('Unknown datastore type: ' . var_export($storeType, TRUE)); - } /* Datastore from module. */ $className = SimpleSAML_Module::resolveClass($storeType, 'Store', 'SimpleSAML_Store'); self::$instance = new $className(); -- GitLab