Skip to content

Commit

Permalink
Dev: Assume absolute path in user uploaded question theme xml_path
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 21, 2021
1 parent e990bf9 commit 5e9f7a4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@ protected function getAttributesFromQuestionTheme($questionThemeName, $questionT

$questionTheme = \QuestionTheme::model()->findByAttributes([], 'name = :name AND extends = :extends', ['name' => $questionThemeName, 'extends' => $questionType]);
if ($questionTheme !== null) {
$xmlFilePath = App()->getConfig('rootdir') . '/' . $questionTheme['xml_path'] . '/config.xml';
$xmlFilePath = $questionTheme['xml_path'] . '/config.xml';
$extensionConfig = \ExtensionConfig::loadFromFile($xmlFilePath);
$xmlAttributes = $extensionConfig->getNodeAsArray('attributes');
}
Expand Down

0 comments on commit 5e9f7a4

Please sign in to comment.