PHP 7.X produces A non-numeric value encountered in \includes\date_functions.inc...
[fa-stable.git] / admin / inst_upgrade.php
index 948594f8e6adf7b735668bae1d0d31b8847e6a69..5e5e1a9809ff1a514011a2fe8d659fb659597234 100644 (file)
@@ -50,7 +50,7 @@ if (get_post('Upgrade'))
 $i = find_submit('Clear');
 if ($i != -1)
 {
-  unlink($path_to_root.'/tmp/upgrade.'.$i.'.log');
+  unlink(VARLOG_PATH.'/upgrade.'.$i.'.log');
   $Ajax->activate('_page_body');
 }
 if (get_post('_select_comp_update'))
@@ -63,6 +63,7 @@ start_form();
 $th = array(_("Company"), _("Table set"), _("Current version"), _("Last log"), _('Upgrade'));
 start_table(TABLESTYLE);
 table_header($th);
+$k = 0; //row colour counter
 
 $uptodate = true;
 foreach($site_status as $i => $comp)
@@ -76,7 +77,7 @@ foreach($site_status as $i => $comp)
 
        label_cell($comp['version'], 'align=center' .($status ? '':' class=redfg')/*, 'class='.( $status ? 'ok' : 'error')*/);
 
-       $log = $path_to_root.'/tmp/upgrade.'.$i.'.log';
+       $log = VARLOG_PATH.'/upgrade.'.$i.'.log';
        if (file_exists($log))
        {
                label_cell(viewer_link(_('View log'), "admin/view/view_upgrade_log.php?id=$i", null, $i, 'log.png')
@@ -112,7 +113,7 @@ if ($uptodate)
 else {
        if (get_post('select_comp') === '')
                display_note(_("Select company for incremental upgrade."), 0, 1, "class='stockmankofg'");
-       submit_center('Upgrade', _('Upgrade'), true, _('Save database and perform upgrade'), 'process');
+       submit_center('Upgrade', _('Upgrade'), true, _('Save database and perform upgrade'), 'nonajax');
 }
 end_form();