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

give decent error message when config file does not exists

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@343 44740490-163a-0410-bde0-09ae8108e29a
parent fe6fc38d
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ class SimpleSAML_Configuration { ...@@ -30,6 +30,9 @@ class SimpleSAML_Configuration {
} }
private function loadConfig() { private function loadConfig() {
if (!file_exists($this->configpath . '/config.php')) {
echo 'You have not yet created a configuration file. [ <a href="http://rnd.feide.no/content/installing-simplesamlphp#id405868">simpleSAMLphp installation manual</a> ]';
}
require_once($this->configpath . '/config.php'); require_once($this->configpath . '/config.php');
$this->configuration = $config; $this->configuration = $config;
} }
......
...@@ -26,7 +26,8 @@ ini_set('include_path', $path); ...@@ -26,7 +26,8 @@ ini_set('include_path', $path);
require_once('SimpleSAML/Configuration.php'); require_once('SimpleSAML/Configuration.php');
SimpleSAML_Configuration::init(dirname(dirname(__FILE__)) . '/config'); $configdir = dirname(dirname(__FILE__)) . '/config';
SimpleSAML_Configuration::init($configdir);
......
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