diff --git a/lib/SimpleSAML/Configuration.php b/lib/SimpleSAML/Configuration.php index eddd30331006e229f4c07235738cf166a519f43c..3564d93a92565cde023c19a763437b44791569a8 100644 --- a/lib/SimpleSAML/Configuration.php +++ b/lib/SimpleSAML/Configuration.php @@ -3,7 +3,7 @@ /** * Configuration of SimpleSAMLphp * - * @author Andreas Ĺkre Solberg, UNINETT AS. <andreas.solberg@uninett.no> + * @author Andreas Aakre Solberg, UNINETT AS. <andreas.solberg@uninett.no> * @package simpleSAMLphp * @version $Id$ */ @@ -30,6 +30,11 @@ class SimpleSAML_Configuration { public static function init($path, $instancename = 'simplesaml', $configfilename = 'config.php') { self::$instance[$instancename] = new SimpleSAML_Configuration($path, $configfilename); } + + public function copyFromBase($instancename, $filename) { + self::$instance[$instancename] = new SimpleSAML_Configuration($this->configpath, $filename); + return self::$instance[$instancename]; + } private function loadConfig() { $filename = $this->configpath . '/' . $this->configfilename;