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

fix for translation script

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2110 44740490-163a-0410-bde0-09ae8108e29a
parent 9a18060e
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ $translationconfig = SimpleSAML_Configuration::getConfig('translation.php'); ...@@ -23,7 +23,7 @@ $translationconfig = SimpleSAML_Configuration::getConfig('translation.php');
$application = $translationconfig->getString('application', 'simplesamlphp'); $application = $translationconfig->getString('application', 'simplesamlphp');
$base = $translationconfig->getString('baseurl') . '/module.php/translationportal/'; $base = $translationconfig->getString('baseurl') . '/module.php/translationportal/';
if (!preg_match('/^(.*?)(\.definition|translation)?\.(json|php)/', $file, $match)) if (!preg_match('/^(.*?)(\.definition|\.translation)?\.(json|php)/', $file, $match))
throw new Exception('Illlegal file name. Must end on (definition|translation).json'); throw new Exception('Illlegal file name. Must end on (definition|translation).json');
$fileWithoutExt = $match[1]; $fileWithoutExt = $match[1];
......
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