Skip to content

Commit

Permalink
[-] MO : Fix #PSCSX-2082, AdminBlockCategories upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Aug 4, 2015
1 parent 05874ff commit d3e9102
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 d3e9102

Please sign in to comment.