This commit is contained in:
tengfei
2017-12-20 16:13:58 +08:00
46 changed files with 751 additions and 119 deletions
+2 -1
View File
@@ -497,7 +497,8 @@ class installModel extends model
*/
public function importDemoData()
{
$demoDataFile = $this->app->getAppRoot() . 'db' . DS . 'demo.sql';
$demoDataFile = $this->app->clientLang == 'en' ? 'endemo.sql' : 'demo.sql';
$demoDataFile = $this->app->getAppRoot() . 'db' . DS . $demoDataFile;
$insertTables = explode(";\n", file_get_contents($demoDataFile));
foreach($insertTables as $table)
{