do not care if based-on-revision is missing
Runa A. Sandvik

Runa A. Sandvik commited on 2010-01-20 18:09:12
Zeige 1 geänderte Dateien mit 5 Einfügungen und 6 Löschungen.

... ...
@@ -50,12 +50,11 @@ sub translation_get_basedonrevision_langfile($$$) {
50 50
 	my ($dir, $lang, $page) = @_;
51 51
 	my $translation = getMetadata("$dir/$lang/$page");
52 52
 
53
-	die ("Cannot find 'Based-On-Revision' header in translations's translation metadata of $lang/$page") unless exists $translation->{'Based-On-Revision'};
54
-
55
-	my ($rev) = $translation->{'Based-On-Revision'};
56
-	if ($rev eq '') { $rev = '(unknown)'; };
57
-
58
-	return $rev
53
+	if (exists $translation->{'Based-On-Revision'}) {
54
+		return $translation->{'Based-On-Revision'};
55
+	} else {
56
+		 return '(unknown)';
57
+	}
59 58
 };
60 59
 sub translation_get_basedonrevision() {
61 60
 	translation_get_basedonrevision_langfile(".", "$(LANG)", $WML_SRC_FILENAME);
62 61