Added VARLIB_PATH and VARLOG_PATH defines to simplify packaging.
[fa-stable.git] / admin / view / view_upgrade_log.php
index e1cbd0f4abad73ccaaf4a5f103d7d93420d41b46..eff1b15adcdf582b2afaaa87ed4b42ea11b7e856 100644 (file)
@@ -30,7 +30,7 @@ br();
   start_table();
        start_row();
 
-       $log = strtr(file_get_contents($path_to_root.'/tmp/upgrade.'.$_GET['id'].'.log'), 
+       $log = strtr(file_get_contents(VARLOG_PATH.'/upgrade.'.$_GET['id'].'.log'), 
                  array('Fatal error' => 'Fatal  error')); // prevent misinterpretation in output_handler
     label_cells(null, nl2br(html_specials_encode($log)));
        end_row();