// Fix during language install (now support table with uppercase prefix on windows)
// Add is_native to hook table in db.sql file git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9989 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -364,7 +364,8 @@ class LanguageCore extends ObjectModel
|
||||
foreach($columns as $column)
|
||||
$fields .= $column['Field'].', ';
|
||||
$fields = rtrim($fields, ', ');
|
||||
$identifier = 'id_'.str_replace('_lang', '', str_replace(_DB_PREFIX_, '', $name));
|
||||
preg_match('#^'.preg_quote(_DB_PREFIX_).'(.+)_lang$#i', $name, $m);
|
||||
$identifier = 'id_'.$m[1];
|
||||
|
||||
$sql = 'INSERT IGNORE INTO `'.$name.'` ('.$fields.') (SELECT ';
|
||||
foreach($columns as $column) {
|
||||
|
||||
Reference in New Issue
Block a user