aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-01-14 21:16:54 +0000
committerFilip Komar <filip@mageia.org>2014-01-14 21:16:54 +0000
commit1d52a164955658a36748ddda9229c8debd601cba (patch)
tree7a565a057eef428306a093ecafa0c7bfdb830d53 /langs/report.php
parent70440965824ce1b06577fb37e55b09386143124c (diff)
downloadwww-1d52a164955658a36748ddda9229c8debd601cba.tar
www-1d52a164955658a36748ddda9229c8debd601cba.tar.gz
www-1d52a164955658a36748ddda9229c8debd601cba.tar.bz2
www-1d52a164955658a36748ddda9229c8debd601cba.tar.xz
www-1d52a164955658a36748ddda9229c8debd601cba.zip
added error_reporting level to the report & company
Diffstat (limited to 'langs/report.php')
-rw-r--r--langs/report.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/langs/report.php b/langs/report.php
index 7bb799008..5e16e1fad 100644
--- a/langs/report.php
+++ b/langs/report.php
@@ -37,9 +37,9 @@
<?php
/**
*/
+ include 'lib.php';
$one_language = isset($_GET['l']) ? strip_tags(trim($_GET['l'])) : null;
$one_resource = isset($_GET['r']) ? strip_tags(trim($_GET['r'])) : null;
- include 'lib.php';
define('APP_ROOT', realpath(__DIR__ . '/..'));
$restore_languages = FALSE;
@@ -141,7 +141,8 @@
}
if ($link == 'about/license') {
require_once('../en/about/license/license.php');
- $license_numbers = array_pop(read_license_from_vcs($l));
+ $license_array = read_license_from_vcs($l);
+ $license_numbers = array_pop($license_array);
$test['a'] += $license_numbers["all"]; // add aproximate number of untranslated sentences from license
$num_of_untranslated_strings += $license_numbers["untran"]; // add number of all license sentences
}