reformat ..

This commit is contained in:
Abdulrahman
2018-12-14 09:43:19 +03:00
parent 2d26d1de85
commit 79c07a41ab

View File

@@ -381,10 +381,12 @@ switch (g('go'))
if($nums_rows != 0) if($nums_rows != 0)
{ {
$no_results = false; $no_results = false;
if (!ip('submit_all_files')) // in delete all files we do not need any limit; if (!ip('submit_all_files')) // in delete all files we do not need any limit;
{ {
$query['LIMIT'] = "$start, $perpage"; $query['LIMIT'] = "$start, $perpage";
} }
is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_files_in_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook is_array($plugin_run_result = Plugins::getInstance()->run('qr_select_files_in_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
$result = $SQL->build($query); $result = $SQL->build($query);
@@ -463,6 +465,7 @@ switch (g('go'))
if (ip('submit_all_files') && $user_himself) if (ip('submit_all_files') && $user_himself)
{ {
is_array($plugin_run_result = Plugins::getInstance()->run('submit_in_all_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook is_array($plugin_run_result = Plugins::getInstance()->run('submit_in_all_fileuser', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
//delete all files //delete all files
foreach($arr as $row) foreach($arr as $row)
{ {
@@ -486,9 +489,7 @@ switch (g('go'))
} }
$sizes += $r['size']; $sizes += $r['size'];
} }
} }
} }