Changeset 1362


Ignore:
Timestamp:
03/20/10 12:09:08 (3 years ago)
Author:
nick_ramsay
Message:

[Branch 1.2] Success/Error message for generating a system report.

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/content/admin_language.php

    r1361 r1362  
    142142$lang["admin_maintenance_site_opened"] = SITE_NAME . " will be opened next page view"; 
    143143$lang['admin_maintenance_announcement_updated'] = "Site announcement updated"; 
     144$lang['admin_maintenance_system_report_success'] = "New system report generated"; 
     145$lang['admin_maintenance_system_report_failure'] = "Unable to generate a system report"; 
     146 
    144147$lang["admin_theme_maintenance"] = "Maintenance"; 
    145148$lang["admin_theme_maintenance_title"] = "Hotaru Maintenance"; 
  • branches/1.2/libs/Debug.php

    r1361 r1362  
    115115        // convert object to text 
    116116        $output = $this->logSystemReport($h, $report); 
    117          
    118         $h->writeLog('system_report', $output); 
    119         $h->closeLog('system_report'); 
     117        if ($output) { 
     118            $h->writeLog('system_report', $output); 
     119            $h->closeLog('system_report'); 
     120             
     121            $h->message = $h->lang['admin_maintenance_system_report_success']; 
     122            $h->messageType = 'green'; 
     123        } else { 
     124            $h->message = $h->lang['admin_maintenance_system_report_failure']; 
     125            $h->messageType = 'red'; 
     126        } 
    120127    } 
    121128 
Note: See TracChangeset for help on using the changeset viewer.