Skip to content
Snippets Groups Projects
Commit 42e83bab authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fixes wrong names on config file in statistics module

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1313 44740490-163a-0410-bde0-09ae8108e29a
parent 9d45c73f
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ function statistics_hook_cron(&$croninfo) {
assert('array_key_exists("tag", $croninfo)');
$config = SimpleSAML_Configuration::getInstance();
$statconfig = $config->copyFromBase('statconfig', 'statistics.php');
$statconfig = $config->copyFromBase('statconfig', 'module_statistics.php');
if (is_null($statconfig->getValue('cron_tag', NULL))) return;
if ($statconfig->getValue('cron_tag', NULL) !== $croninfo['tag']) return;
......
......@@ -11,7 +11,7 @@ function statistics_hook_sanitycheck(&$hookinfo) {
try {
$config = SimpleSAML_Configuration::getInstance();
$statconfig = $config->copyFromBase('statconfig', 'statistics.php');
$statconfig = $config->copyFromBase('statconfig', 'module_statistics.php');
} catch(Exception $e) {
$hookinfo['errors'][] = '[statistics] Could not get configuration: ' . $e->getMessage(); return;
}
......
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