Completed
Push — master ( 16a3b8...cbba74 )
by Stanislav
17s queued 15s
created
core/controller/file.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -232,8 +232,7 @@  discard block
 block discarded – undo
232 232
 			$this->data['album_user_id'] = 1;
233 233
 			$this->data['image_filemissing'] = 0;
234 234
 			$this->data['album_watermark'] = 0;
235
-		}
236
-		else
235
+		} else
237 236
 		{
238 237
 			$sql = 'SELECT *
239 238
 				FROM ' . $this->table_images . ' i
@@ -394,8 +393,7 @@  discard block
 block discarded – undo
394 393
 			{
395 394
 				$response->headers->set('expires', '-1');
396 395
 			}
397
-		}
398
-		else
396
+		} else
399 397
 		{
400 398
 			$response->headers->set('Content-Disposition', 'inline; ' . $this->tool->header_filename(htmlspecialchars_decode($this->tool->image_name)) . '.' . ($this->tool->image_type == 'jpeg' ? 'jpg' : $this->tool->image_type));
401 399
 			if ($this->tool->is_ie_greater7($this->user->browser))
Please login to merge, or discard this patch.
core/album/display.php 1 patch
Braces   +15 added lines, -25 removed lines patch added patch discarded remove patch
@@ -222,8 +222,7 @@  discard block
 block discarded – undo
222 222
 					SET album_parents = '" . $this->db->sql_escape($album_data['album_parents']) . "'
223 223
 					WHERE parent_id = " . (int) $album_data['parent_id'];
224 224
 				$this->db->sql_query($sql);
225
-			}
226
-			else
225
+			} else
227 226
 			{
228 227
 				$album_parents = unserialize($album_data['album_parents']);
229 228
 			}
@@ -291,16 +290,14 @@  discard block
 block discarded – undo
291 290
 			if (!empty($row['user_id']))
292 291
 			{
293 292
 				$album_moderators[$a_id][] = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
294
-			}
295
-			else
293
+			} else
296 294
 			{
297 295
 				$group_name = (($row['group_type'] == GROUP_SPECIAL) ? $this->language->lang('G_' . $row['group_name']) : $row['group_name']);
298 296
 
299 297
 				if ($this->user->data['user_id'] != ANONYMOUS && !$this->auth->acl_get('u_viewprofile'))
300 298
 				{
301 299
 					$album_moderators[$a_id][] = '<span' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . '>' . $group_name . '</span>';
302
-				}
303
-				else
300
+				} else
304 301
 				{
305 302
 					$album_moderators[$a_id][] = '<a' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . ' href="' . append_sid($this->root_path . 'memberlist.' . $this->php_ext, 'mode=group&amp;g=' . $row['group_id']) . '">' . $group_name . '</a>';
306 303
 				}
@@ -344,8 +341,7 @@  discard block
 block discarded – undo
344 341
 			}
345 342
 			$root_data = array('album_id' => \phpbbgallery\core\block::PUBLIC_ALBUM);
346 343
 			$sql_where = 'a.album_user_id = ' . \phpbbgallery\core\block::PUBLIC_ALBUM;
347
-		}
348
-		else if ($root_data == 'personal')
344
+		} else if ($root_data == 'personal')
349 345
 		{
350 346
 			if ($mark_read == 'albums')
351 347
 			{
@@ -362,8 +358,7 @@  discard block
 block discarded – undo
362 358
 				{
363 359
 					$sql_where .= ' AND u.username_clean NOT ' . $this->db->sql_like_expression(chr($i) . $this->db->any_char);
364 360
 				}
365
-			}
366
-			else if ($first_char)
361
+			} else if ($first_char)
367 362
 			{
368 363
 				$sql_where .= ' AND u.username_clean ' . $this->db->sql_like_expression(substr($first_char, 0, 1) . $this->db->any_char);
369 364
 			}
@@ -407,8 +402,7 @@  discard block
 block discarded – undo
407 402
 					'phpbbgallery_core_search_recent_page',),
408 403
 					'params' => array()), 'pagination', 'page', $num_pegas, $limit, $start
409 404
 			);*/
410
-		}
411
-		else
405
+		} else
412 406
 		{
413 407
 			$sql_where = 'a.left_id > ' . $root_data['left_id'] . ' AND a.left_id < ' . $root_data['right_id'] . ' AND a.album_user_id = ' . $root_data['album_user_id'];
414 408
 		}
@@ -496,10 +490,12 @@  discard block
 block discarded – undo
496 490
 				continue;
497 491
 			}
498 492
 
499
-			if (false)//@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id']))
493
+			if (false) {
494
+				//@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id']))
500 495
 			{
501 496
 				// if the user does not have permissions to list this album, skip everything until next branch
502 497
 				$right_id = $row['right_id'];
498
+			}
503 499
 				continue;
504 500
 			}
505 501
 
@@ -524,8 +520,7 @@  discard block
 block discarded – undo
524 520
 				$album_rows[$parent_id]['album_type_last_image'] = $row['album_type'];
525 521
 				$album_rows[$parent_id]['album_contest_marked'] = $row['contest_marked'];
526 522
 				$album_rows[$parent_id]['orig_album_last_image_time'] = $row['album_last_image_time'];
527
-			}
528
-			else if ($row['album_type'])
523
+			} else if ($row['album_type'])
529 524
 			{
530 525
 				$subalbums[$parent_id][$album_id]['display'] = ($row['display_on_index']) ? true : false;
531 526
 				$subalbums[$parent_id][$album_id]['name'] = $row['album_name'];
@@ -567,16 +562,14 @@  discard block
 block discarded – undo
567 562
 				{
568 563
 					$this->misc->markread('all');
569 564
 					$message = $this->language->lang('RETURN_INDEX', '<a href="' . $redirect . '">', '</a>');
570
-				}
571
-				else
565
+				} else
572 566
 				{
573 567
 					$this->misc->markread('albums', $album_ids);
574 568
 					$message = $this->language->lang('RETURN_ALBUM', '<a href="' . $redirect . '">', '</a>');
575 569
 				}
576 570
 				meta_refresh(3, $redirect);
577 571
 				trigger_error($this->language->lang('ALBUMS_MARKED') . '<br /><br />' . $message);
578
-			}
579
-			else
572
+			} else
580 573
 			{
581 574
 				$message = $this->language->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>');
582 575
 				meta_refresh(3, $redirect);
@@ -654,8 +647,7 @@  discard block
 block discarded – undo
654 647
 							'name'		=> $subalbum_row['name'],
655 648
 							'unread'	=> $subalbum_unread,
656 649
 						);
657
-					}
658
-					else
650
+					} else
659 651
 					{
660 652
 						unset($subalbums[$album_id][$subalbum_id]);
661 653
 					}
@@ -668,8 +660,7 @@  discard block
 block discarded – undo
668 660
 
669 661
 				$l_subalbums = (sizeof($subalbums[$album_id]) == 1) ? $this->language->lang('SUBALBUM') : $this->language->lang('SUBALBUMS');
670 662
 				$folder_image = ($album_unread) ? 'forum_unread_subforum' : 'forum_read_subforum';
671
-			}
672
-			else
663
+			} else
673 664
 			{
674 665
 				$folder_alt = ($album_unread) ? 'NEW_IMAGES' : 'NO_NEW_IMAGES';
675 666
 				$folder_image = ($album_unread) ? 'forum_unread' : 'forum_read';
@@ -695,8 +686,7 @@  discard block
 block discarded – undo
695 686
 				$lastimage_uc_name = '';//@todo phpbb_ext_gallery_core_image::generate_link('image_name', $phpbb_ext_gallery->config->get('link_image_name'), $lastimage_image_id, $lastimage_name, $lastimage_album_id);
696 687
 				// phpbb_ext_gallery_core_image::generate_link('lastimage_icon', $phpbb_ext_gallery->config->get('link_image_icon'), $lastimage_image_id, $lastimage_name, $lastimage_album_id);
697 688
 				$lastimage_uc_icon = '';//@todo phpbb_ext_gallery_core_image::generate_link('lastimage_icon', $phpbb_ext_gallery->config->get('link_image_icon'), $lastimage_image_id, $lastimage_name, $lastimage_album_id);
698
-			}
699
-			else
689
+			} else
700 690
 			{
701 691
 				$lastimage_time = $lastimage_album_type = $lastimage_contest_marked = 0;
702 692
 				$lastimage_uc_fake_thumbnail = $lastimage_uc_fake_thumbnail_url = $lastimage_uc_thumbnail = $lastimage_uc_name = $lastimage_uc_icon = '';
Please login to merge, or discard this patch.