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) {