// uncommented sql query for upgrade (1.5.0.1),
[*] Installer : Upgrade script output now have also the version number which the query belongs to // fix in generate_root_category_from_multishop
This commit is contained in:
1 parent
f38774f1b9
commit
419816361e
4 files changed
+98
-86
No files matched your search
@@ -25,7 +25,7 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_new_tab($className, $name, $id_parent)
|
||||
function add_new_tab($className, $name, $id_parent, $returnId = false)
|
||||
{
|
||||
$array = array();
|
||||
foreach (explode('|', $name) AS $item)
|
||||
@@ -57,4 +57,10 @@ function add_new_tab($className, $name, $id_parent)
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE `class_name` = \''.pSQL($className).'\' LIMIT 0,1
|
||||
), 1, 1, 1, 1 FROM `'._DB_PREFIX_.'profile` )');
|
||||
}
|
||||
|
||||
if($returnId) {
|
||||
return (int)Db::getInstance()->getValue('SELECT `id_tab`
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE `class_name` = \''.pSQL($className).'\'');
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require_once('./generate_ntree.php');
|
||||
require_once('generate_ntree.php');
|
||||
|
||||
function generate_root_category_for_multishop()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user