* change for english demo.

This commit is contained in:
wangyidong
2017-12-20 15:42:04 +08:00
parent 5a915e7334
commit 32d218b92f
2 changed files with 357 additions and 1 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)
{