Skip to content

Commit

Permalink
Merge pull request PrestaShop#15 from gRoussac/PSCSX-2082
Browse files Browse the repository at this point in the history
[-] MO : Fix #PSCSX-2082, AdminBlockCategories upgrade
  • Loading branch information
Jérôme Nadaud committed Aug 4, 2015
2 parents f83cfa2 + d3e9102 commit 67657a2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions upgrade/install-2.9.1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

if (!defined('_PS_VERSION_')) {
exit;
}

function upgrade_module_2_9_1($object)
{
$id_tab = (int)Tab::getIdFromClassName('AdminBlockCategories');

if (!$id_tab) {
$tab = new Tab();
$tab->active = 1;
$tab->class_name = 'AdminBlockCategories';
$tab->name = array();
foreach (Language::getLanguages(true) as $lang) {
$tab->name[$lang['id_lang']] = 'BlockCategories';
}
$tab->id_parent = -1;
$tab->module = $object->name;

return $tab->add();
}
return true;
}

0 comments on commit 67657a2

Please sign in to comment.