Changeset 2482:60127cea2a4f
Legend:
- Unmodified
- Added
- Removed
-
plugins/maintenance/inc/tasks/class.dc.maintenance.logs.php
r2044 r2482 14 14 class dcMaintenanceLogs extends dcMaintenanceTask 15 15 { 16 public static $keep_maintenance_logs = true; 17 16 18 protected $group = 'purge'; 17 19 … … 19 21 { 20 22 $this->task = __('Delete all logs'); 21 $this->success 23 $this->success = __('Logs deleted.'); 22 24 $this->error = __('Failed to delete logs.'); 23 25 … … 27 29 public function execute() 28 30 { 29 $this->core->log->delLogs(null, true); 31 if (dcMaintenanceLogs::$keep_maintenance_logs) { 32 $this->core->con->execute( 33 'DELETE FROM '.$this->core->prefix.'log '. 34 "WHERE log_table <> 'maintenance' " 35 ); 36 } 37 else { 38 $this->core->log->delLogs(null, true); 39 } 30 40 31 41 return true;
Note: See TracChangeset
for help on using the changeset viewer.