فهرست منبع

Minor - Improve display style

ywarnier 14 سال پیش
والد
کامیت
8760e7d217
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      main/cron/lang/list_undefined_langvars.php

+ 4 - 3
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<br />\n"); } else { echo "The following terms were nowhere to be found: <br />\n"; }
+if (count($undefined_terms)<1) { die("No missing terms<br />\n"); } else { echo "The following terms were nowhere to be found: <br />\n<table>"; }
 foreach ($undefined_terms as $term => $file) {
-	echo "$term\t in $file<br />\n";
+	echo "<tr><td>$term</td><td>in $file</td></tr>\n";
 }
+echo "</table>\n";
 
 
 function get_all_php_files($base_path) {