@@ -82,7 +82,7 module Redmine | |||||
82 | def load_from_yaml(filename, env) |
|
82 | def load_from_yaml(filename, env) | |
83 | yaml = nil |
|
83 | yaml = nil | |
84 | begin |
|
84 | begin | |
85 |
yaml = YAML::load |
|
85 | yaml = YAML::load(ERB.new(File.read(filename)).result) | |
86 | rescue ArgumentError |
|
86 | rescue ArgumentError | |
87 | $stderr.puts "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded." |
|
87 | $stderr.puts "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded." | |
88 | exit 1 |
|
88 | exit 1 |
General Comments 0
You need to be logged in to leave comments.
Login now