aboutsummaryrefslogtreecommitdiffstats
path: root/langs/lib.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-01-12 22:00:28 +0000
committerFilip Komar <filip@mageia.org>2014-01-12 22:00:28 +0000
commit8f3c87ce1aa7c6ea2b110901688a0d79f82029ca (patch)
treef80ec1757fb3eb765396d5910924f6cc1ca5773c /langs/lib.php
parent99769a8d51ce4efca1615cac5724bff840d5a9ac (diff)
downloadwww-8f3c87ce1aa7c6ea2b110901688a0d79f82029ca.tar
www-8f3c87ce1aa7c6ea2b110901688a0d79f82029ca.tar.gz
www-8f3c87ce1aa7c6ea2b110901688a0d79f82029ca.tar.bz2
www-8f3c87ce1aa7c6ea2b110901688a0d79f82029ca.tar.xz
www-8f3c87ce1aa7c6ea2b110901688a0d79f82029ca.zip
yet another small fix in l10n report as error_reporting level is way to high on production :( and to low locally :(
Diffstat (limited to 'langs/lib.php')
-rw-r--r--langs/lib.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/langs/lib.php b/langs/lib.php
index b75fb280b..890b54823 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -129,6 +129,7 @@ function aproximate_number_of_untranslated_constitution_lines($app_root, $lang,
$constitution_readable = FALSE;
$dest_constitution = sprintf('%s/%s/%s/%s_%s.md', $app_root, $lang, 'about/constitution', 'mageia.org_statutes', $lang);
$number_of_unique_lines_in_eng_constitution = count($unique_lines_in_eng_constitution);
+ $aproximate_number_of_untranslated_lines = 0;
if(is_readable($dest_constitution)) {
$unique_lines_in_constitution = array_unique(file($dest_constitution));
$number_of_unique_lines_in_constitution = count($unique_lines_in_constitution);