@@ -67,8 +67,7 @@ |
||
| 67 | 67 | if (confirm_box(true)) |
| 68 | 68 | { |
| 69 | 69 | $log->delete_logs($marked); |
| 70 | - } |
|
| 71 | - else |
|
| 70 | + } else |
|
| 72 | 71 | { |
| 73 | 72 | confirm_box(false, $this->language->lang('CONFIRM_OPERATION'), build_hidden_fields([ |
| 74 | 73 | 'page' => $page, |
@@ -133,7 +133,9 @@ discard block |
||
| 133 | 133 | { |
| 134 | 134 | $limit = $this->gallery_config->get('items_per_page'); |
| 135 | 135 | // If its called from ACP album is 0 if MCP then is not |
| 136 | - if($album == 0) $page = (int) ($page / $limit) + 1; |
|
| 136 | + if($album == 0) { |
|
| 137 | + $page = (int) ($page / $limit) + 1; |
|
| 138 | + } |
|
| 137 | 139 | } |
| 138 | 140 | $this->language->add_lang(['info_acp_gallery_logs'], 'phpbbgallery/core'); |
| 139 | 141 | |
@@ -206,8 +208,7 @@ discard block |
||
| 206 | 208 | $sql_array['GROUP_BY'] = 'l.description, l.log_id, i.image_id'; |
| 207 | 209 | break; |
| 208 | 210 | } |
| 209 | - } |
|
| 210 | - else |
|
| 211 | + } else |
|
| 211 | 212 | { |
| 212 | 213 | $sql_array['ORDER_BY'] = 'l.log_time ' . (isset($additional['sort_dir']) ? 'ASC' : 'DESC'); |
| 213 | 214 | $sql_array['GROUP_BY'] = 'l.log_time, l.log_id, i.image_id'; |
@@ -284,8 +285,7 @@ discard block |
||
| 284 | 285 | 'params' => array( |
| 285 | 286 | ), |
| 286 | 287 | ), 'pagination', 'page', $count, $limit, ($page-1) * $limit); |
| 287 | - } |
|
| 288 | - else if ($album == -1) |
|
| 288 | + } else if ($album == -1) |
|
| 289 | 289 | { |
| 290 | 290 | $url_array = array( |
| 291 | 291 | 'i' => '-phpbbgallery-core-acp-gallery_logs_module', |
@@ -307,8 +307,7 @@ discard block |
||
| 307 | 307 | $url = http_build_query($url_array,'','&'); |
| 308 | 308 | |
| 309 | 309 | $this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit); |
| 310 | - } |
|
| 311 | - else |
|
| 310 | + } else |
|
| 312 | 311 | { |
| 313 | 312 | $this->pagination->generate_template_pagination(array( |
| 314 | 313 | 'routes' => array( |