>From f548a435d1459c3b709eafca72f64f2eec474792 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 20 Jul 2009 13:15:36 +0200 Subject: [PATCH] Fix typo --- transl/php/lib.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/transl/php/lib.php b/transl/php/lib.php index 400cbf7..0decba1 100644 --- a/transl/php/lib.php +++ b/transl/php/lib.php @@ -65,7 +65,7 @@ function validate_lang($id) global $DATAROOT; $lang = preg_replace("/[^0-9a-f:]/", "-", $id); - if (!file_exists("$DATAROOT/conf/$lang") || !file_exists("$DATAROOT/langs/$lang")) + if (!file_exists("$DATAROOT/conf/$lang") && !file_exists("$DATAROOT/langs/$lang")) die("Invalid lang parameter"); return $lang; } -- 1.6.0.6