function fa2_3() {
$this->description = _('Upgrade from version 2.2 to 2.3');
- $this->preconf = $this->fix_extensions();
}
//
//
function pre_check($pref, $force)
{
+
if ($this->beta && !$force)
$this->sql = 'alter2.3rc.sql';
//
function installed($pref) {
$this->beta = !check_table($pref, 'suppliers', 'tax_included');
+ $this->preconf = $this->fix_extensions();
$n = 1; // number of patches to be installed
$patchcnt = 0;
function fix_extensions()
{
- global $path_to_root, $next_extension_id;
+ global $path_to_root, $next_extension_id, $installed_languages;
+ $lang_chd = false;
+ foreach($installed_languages as $i => $lang) {
+ if (!isset($lang['path'])) {
+ $code = $lang['code'];
+ $installed_languages[$i]['path'] = 'lang/'.$code;
+ $installed_languages[$i]['package'] = $code;
+ $lang_chd = true;
+ }
+ }
+ if ($lang_chd)
+ write_lang();
+
$installed_extensions= get_company_extensions();
if (!isset($next_extension_id))
{
if (isset($ext['title'])) // old type entry
{
- if ($ext['type'] == 'module')
+ if ($ext['type'] == 'module') {
$new['type'] = 'extension';
$new['tabs'][] = array(
'url' => $ext['filename'],