aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.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/diff.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/diff.php')
-rw-r--r--langs/diff.php7
1 files changed, 4 insertions, 3 deletions
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 .= '<h2 style="color: red;">Please translate license fully into ' . $langs[$target_lang] . ' first</h2>';