Skip to content
Snippets Groups Projects
Commit 3424aced authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Bugfix: don't try to log anything before creating a class alias, as the logger...

Bugfix: don't try to log anything before creating a class alias, as the logger itself might be subject to an alias.
parent a89fcd1d
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,8 @@ function temporaryLoader($class)
$path = explode('_', $class);
$new = join('\\', $path);
if (class_exists($new, false)) {
SimpleSAML\Logger::warning("The class '$class' is now using namespaces, please use '$new'.");
class_alias($new, $class);
SimpleSAML\Logger::warning("The class '$class' is now using namespaces, please use '$new'.");
}
$file = dirname(__FILE__).DIRECTORY_SEPARATOR.join(DIRECTORY_SEPARATOR, $path).'.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment