From bcf357d43504b8ccb57b3e23d8381e8f04c3f5e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Tue, 12 Jan 2010 13:26:57 +0000
Subject: [PATCH] fix for translation script

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2110 44740490-163a-0410-bde0-09ae8108e29a
---
 bin/translation.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/translation.php b/bin/translation.php
index 5202b3f8a..c68402003 100755
--- a/bin/translation.php
+++ b/bin/translation.php
@@ -23,7 +23,7 @@ $translationconfig = SimpleSAML_Configuration::getConfig('translation.php');
 $application = $translationconfig->getString('application', 'simplesamlphp');
 $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');
 $fileWithoutExt = $match[1];
 
-- 
GitLab