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

Module: Log a better error if the module is missing a default-enable or default-enable file.

Thanks to Ryan Panning for providing this patch.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3065 44740490-163a-0410-bde0-09ae8108e29a
parent 85e9ee57
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,9 @@ class SimpleSAML_Module {
return FALSE;
}
assert('file_exists($moduleDir . "/default-disable") || file_exists($moduleDir . "/default-enable")');
if (assert_options(ASSERT_ACTIVE) && !file_exists($moduleDir . '/default-enable') && !file_exists($moduleDir . '/default-disable')) {
SimpleSAML_Logger::error("Missing default-enable or default-disable file for the module $module");
}
if(file_exists($moduleDir . '/enable')) {
return TRUE;
......
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