* change for english demo.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user