From 1d52a164955658a36748ddda9229c8debd601cba Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Tue, 14 Jan 2014 21:16:54 +0000 Subject: added error_reporting level to the report & company --- langs/diff.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'langs/diff.php') diff --git a/langs/diff.php b/langs/diff.php index f7e87839f..77cf330be 100644 --- a/langs/diff.php +++ b/langs/diff.php @@ -4,6 +4,8 @@ * against matching file in language 'l', if it exists. */ +include 'lib.php'; + define('APP_ROOT', realpath(__DIR__ . '/..')); $source_file = isset($_GET['s']) ? strip_tags(trim($_GET['s'])) : null; @@ -19,8 +21,6 @@ if (!file_exists($source_file)) { die('no source'); } -include 'lib.php'; - $target_file = _lang_file_switch($source_file, $target_lang); if (!file_exists($target_file)) { @@ -85,7 +85,8 @@ if($constitution) { if($license) { require_once('../en/about/license/license.php'); - $license_numbers = array_pop(read_license_from_vcs($target_lang)); + $license_array = read_license_from_vcs($target_lang); + $license_numbers = array_pop($license_array); $num_of_untranslated_strings = $license_numbers["untran"]; // number of all license sentences $diff['untranslated_sentences_in_license'] = $license_numbers['untranslated_sentences']; // add untranslated license sentences $s .= '

Please translate license fully into ' . $langs[$target_lang] . ' first

'; -- cgit v1.2.1