From 8760e7d217f68fef9f4c1cfb3032c17ab7009de5 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Thu, 5 May 2011 00:43:19 -0500 Subject: [PATCH] Minor - Improve display style --- main/cron/lang/list_undefined_langvars.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/cron/lang/list_undefined_langvars.php b/main/cron/lang/list_undefined_langvars.php index ec2544f56c..de8d39dd83 100644 --- a/main/cron/lang/list_undefined_langvars.php +++ b/main/cron/lang/list_undefined_langvars.php @@ -6,7 +6,7 @@ /** * Includes and declarations */ -if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); } +//if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); } require_once '../../inc/global.inc.php'; require_once api_get_path(SYS_CODE_PATH).'admin/sub_language.class.php'; $path = api_get_path(SYS_LANG_PATH).'english'; @@ -49,10 +49,11 @@ foreach ($files as $file) { flush(); } //$undefined_terms = array_flip($undefined_terms); -if (count($undefined_terms)<1) { die("No missing terms
\n"); } else { echo "The following terms were nowhere to be found:
\n"; } +if (count($undefined_terms)<1) { die("No missing terms
\n"); } else { echo "The following terms were nowhere to be found:
\n"; } foreach ($undefined_terms as $term => $file) { - echo "$term\t in $file
\n"; + echo "\n"; } +echo "
$termin $file
\n"; function get_all_php_files($base_path) {