UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 6 Dec 2013 09:00:15 +0000 (17:00 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Dec 2013 09:00:15 +0000 (17:00 +0800)
UpdateDatabase.php

index 2d9f6d0..c7e89a9 100644 (file)
@@ -90,7 +90,13 @@ class Pman_Xtuple_UpdateDatabase extends Pman
                     
             die("--base=XXX  and --init =1 must be used together.");
         }
-        
+        // default to import the terms.
+        if (
+                (!empty($opts['init']) && empty($opts['json-terms']) ))
+        {
+            HTML_FlexyFramework::get()->page->opts['json-terms'] = dirname(__FILE__).'/Setup/terms.json';
+            
+        }