Translation : Improved generate_lang_file.php to support inclusion of more than one...
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 18 Nov 2010 15:23:32 +0000 (16:23 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 18 Nov 2010 15:23:32 +0000 (16:23 +0100)
public_html/lang/generate_lang_file.php

index f066929..f3d80d6 100755 (executable)
 require_once('../core.php');
 require_once('../conf/config.inc.php');
 
-if (isset($argv[2]) && is_file($argv[2])) {
-  @include($argv[2]);
+if ($argc > 1) {
+  for ($i=1;$i<$argc;$i++) {
+    if (is_file($argv[$i])) {
+       echo $argv[$i];
+      @include($argv[$i]);
+    }
+  }
 }
 
 $data=array();