Line 21 in /home/thewebsitemarket/public_html/vendor/a2nt/cms-niceties/src/Tasks/DumpMySQL.php
12 protected $description = 'Create MySQL dump'; 13 protected $enabled = true; 14 15 public function run($request) 16 { 17 $fileName = 'backup-'.date('d-m-Y').'.sql'; 18 $cfg = DB::getConfig(); 19 20 try { 21 ob_clean(); 22 } catch (Exception $e) { 23 } 24 25 // check if gzip is on 26 try { 27 if (count(array_intersect(['mod_deflate', 'mod_gzip'], apache_get_modules())) > 0) {
Line 27 in /home/thewebsitemarket/public_html/vendor/a2nt/cms-niceties/src/Tasks/DumpMySQL.php
18 $cfg = DB::getConfig(); 19 20 try { 21 ob_clean(); 22 } catch (Exception $e) { 23 } 24 25 // check if gzip is on 26 try { 27 if (count(array_intersect(['mod_deflate', 'mod_gzip'], apache_get_modules())) > 0) { 28 $fileName .= '.gz'; 29 } 30 } catch (Exception $e) { 31 } 32 33 header('Content-Disposition: attachment; filename="'.$fileName.'"');