Added payment terms categories
[fa-stable.git] / admin / inst_upgrade.php
index 5084954f1edb6228acca81a11ff3ad605cff77e5..eeee26a214b88152e2a01d84e9d607643f40eeb7 100644 (file)
@@ -69,7 +69,7 @@ function get_installers()
                while(false !== ($fname = readdir($datadir)))
                { // check all php files but index.php
                        if (!is_dir($patchdir . $fname) && ($fname != 'index.php')
-                               && stristr($fname, '.php') != false)
+                               && stristr($fname, '.php') != false && $fname[0] != '.')
                        {
                                unset($install);
                                include_once($patchdir . $fname);
@@ -171,6 +171,7 @@ if (get_post('Upgrade'))
                display_notification(_('All companies data has been successfully updated'));
        }       
        unset($_SESSION['SysPrefs']); // re-read system setup
+       $_SESSION['SysPrefs'] = new sys_prefs();
        $Ajax->activate('_page_body');
 }