Passed
Pull Request — master (#325)
by
unknown
12:13 queued 09:32
created
core/acp/albums_module.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -324,8 +324,7 @@  discard block
 block discarded – undo
324 324
 					if (!$update)
325 325
 					{
326 326
 						$album_data = $row;
327
-					}
328
-					else
327
+					} else
329 328
 					{
330 329
 						$album_data['left_id'] = $row['left_id'];
331 330
 						$album_data['right_id'] = $row['right_id'];
@@ -333,8 +332,7 @@  discard block
 block discarded – undo
333 332
 					if ($row['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST)
334 333
 					{
335 334
 						$contest_data = $phpbb_gallery_contest->get_contest($album_id, 'album');
336
-					}
337
-					else
335
+					} else
338 336
 					{
339 337
 						// Default values, 3 days later rate and 7 for the end of the contest
340 338
 						$contest_data = array(
@@ -356,8 +354,7 @@  discard block
 block discarded – undo
356 354
 					/*
357 355
 					$album_data['album_password_confirm'] = $album_data['album_password'];
358 356
 					*/
359
-				}
360
-				else
357
+				} else
361 358
 				{
362 359
 					$this->page_title = 'CREATE_ALBUM';
363 360
 
@@ -494,8 +491,7 @@  discard block
 block discarded – undo
494 491
 						'S_HAS_SUBALBUMS'		=> ($album_data['right_id'] - $album_data['left_id'] > 1) ? true : false,
495 492
 						'S_ALBUMS_LIST'			=> $albums_list,
496 493
 					));
497
-				}
498
-				else if ($uploadable_album_exists)
494
+				} else if ($uploadable_album_exists)
499 495
 				{
500 496
 					$template->assign_vars(array(
501 497
 						'S_MOVE_ALBUM_OPTIONS'		=> $phpbb_ext_gallery_core_album->get_albumbox(true, '', $album_data['parent_id'], false, $album_id, 0, \phpbbgallery\core\block::TYPE_UPLOAD),
@@ -635,8 +631,7 @@  discard block
 block discarded – undo
635 631
 		if (!$this->parent_id)
636 632
 		{
637 633
 			$navigation = $user->lang['GALLERY_INDEX'];
638
-		}
639
-		else
634
+		} else
640 635
 		{
641 636
 			$navigation = '<a href="' . $this->u_action . '">' . $user->lang['GALLERY_INDEX'] . '</a>';
642 637
 
@@ -646,8 +641,7 @@  discard block
 block discarded – undo
646 641
 				if ($row['album_id'] == $this->parent_id)
647 642
 				{
648 643
 					$navigation .= ' -&gt; ' . $row['album_name'];
649
-				}
650
-				else
644
+				} else
651 645
 				{
652 646
 					$navigation .= ' -&gt; <a href="' . $this->u_action . '&amp;parent_id=' . $row['album_id'] . '">' . $row['album_name'] . '</a>';
653 647
 				}
@@ -678,8 +672,7 @@  discard block
 block discarded – undo
678 672
 				if ($row['album_status'] == (int) \phpbbgallery\core\block::ALBUM_LOCKED)
679 673
 				{
680 674
 					$folder_image = '<img src="images/icon_folder_lock.gif" alt="' . $user->lang['LOCKED'] . '" />';
681
-				}
682
-				else
675
+				} else
683 676
 				{
684 677
 					$folder_image = ($row['left_id'] + 1 != $row['right_id']) ? '<img src="images/icon_subfolder.gif" alt="' . $user->lang['SUBALBUM'] . '" />' : '<img src="images/icon_folder.gif" alt="' . $user->lang['FOLDER'] . '" />';
685 678
 				}
@@ -705,8 +698,7 @@  discard block
 block discarded – undo
705 698
 				);
706 699
 			}
707 700
 			while ($row = $db->sql_fetchrow($result));
708
-		}
709
-		else if ($this->parent_id)
701
+		} else if ($this->parent_id)
710 702
 		{
711 703
 			$row = $phpbb_ext_gallery_core_album->get_info($this->parent_id);
712 704
 
Please login to merge, or discard this patch.
core/controller/moderate.php 1 patch
Braces   +17 added lines, -34 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@  discard block
 block discarded – undo
149 149
 			{
150 150
 				$this->misc->not_authorised($album_backlink, $album_loginlink, 'LOGIN_EXPLAIN_UPLOAD');
151 151
 			}
152
-		}
153
-		else
152
+		} else
154 153
 		{
155 154
 			$album = $this->album->get_info($album_id);
156 155
 			if (!$this->gallery_auth->acl_check('m_', $album['album_id'], $album['album_user_id']))
@@ -211,8 +210,7 @@  discard block
 block discarded – undo
211 210
 			{
212 211
 				$this->misc->not_authorised($album_backlink, $album_loginlink, 'LOGIN_EXPLAIN_UPLOAD');
213 212
 			}
214
-		}
215
-		else
213
+		} else
216 214
 		{
217 215
 			$album = $this->album->get_info($album_id);
218 216
 			if (!$this->gallery_auth->acl_check('m_status', $album['album_id'], $album['album_user_id']))
@@ -257,8 +255,7 @@  discard block
 block discarded – undo
257 255
 					$this->url->meta_refresh(3, $back_link);
258 256
 					trigger_error($message);
259 257
 				}
260
-			}
261
-			else
258
+			} else
262 259
 			{
263 260
 				$s_hidden_fields = '<input type="hidden" name="action['.$action.']" value="' . $action . '" />';
264 261
 				$s_hidden_fields .= '<input type="hidden" name="back_link" value="' . $back_link . '" />';
@@ -307,8 +304,7 @@  discard block
 block discarded – undo
307 304
 			{
308 305
 				$this->misc->not_authorised($album_backlink, $album_loginlink, 'LOGIN_EXPLAIN_UPLOAD');
309 306
 			}
310
-		}
311
-		else
307
+		} else
312 308
 		{
313 309
 			$album = $this->album->get_info($album_id);
314 310
 			if (!$this->gallery_auth->acl_check('m_', $album['album_id'], $album['album_user_id']))
@@ -358,8 +354,7 @@  discard block
 block discarded – undo
358 354
 				$message = $this->language->lang('WAITING_REPORTED_DONE', count($report_ary));
359 355
 				$this->url->meta_refresh(3, $back_link);
360 356
 				trigger_error($message);
361
-			}
362
-			else
357
+			} else
363 358
 			{
364 359
 				$s_hidden_fields = '<input type="hidden" name="action['.$action.']" value="' . $action . '" />';
365 360
 				$s_hidden_fields .= '<input type="hidden" name="back_link" value="' . $back_link . '" />';
@@ -379,8 +374,7 @@  discard block
 block discarded – undo
379 374
 			{
380 375
 				$this->misc->not_authorised($album_backlink, $album_loginlink, 'LOGIN_EXPLAIN_UPLOAD');
381 376
 			}
382
-		}
383
-		else
377
+		} else
384 378
 		{
385 379
 			$album = $this->album->get_info($album_id);
386 380
 			if (!$this->gallery_auth->acl_check('m_report', $album['album_id'], $album['album_user_id']))
@@ -470,8 +464,7 @@  discard block
 block discarded – undo
470 464
 					$this->url->meta_refresh(3, $back_link);
471 465
 					trigger_error($message);
472 466
 				}
473
-			}
474
-			else
467
+			} else
475 468
 			{
476 469
 				$s_hidden_fields = '<input type="hidden" name="select_action" value="' . $action . '" />';
477 470
 				$s_hidden_fields .= '<input type="hidden" name="back_link" value="' . $back_link . '" />';
@@ -492,8 +485,7 @@  discard block
 block discarded – undo
492 485
 						'S_HIDDEN_FIELDS'	=> $s_hidden_fields,
493 486
 					));
494 487
 					return $this->helper->render('gallery/mcp_body.html', $this->language->lang('GALLERY'));
495
-				}
496
-				else
488
+				} else
497 489
 				{
498 490
 					confirm_box(false, $this->language->lang('QUEUES_A_' . strtoupper($action) . '2_CONFIRM'), $s_hidden_fields);
499 491
 				}
@@ -508,8 +500,7 @@  discard block
 block discarded – undo
508 500
 			{
509 501
 				$this->misc->not_authorised($album_backlink, $album_loginlink, 'LOGIN_EXPLAIN_UPLOAD');
510 502
 			}
511
-		}
512
-		else
503
+		} else
513 504
 		{
514 505
 			$album = $this->album->get_info($album_id);
515 506
 			if (!$this->gallery_auth->acl_check('m_', $album['album_id'], $album['album_user_id']))
@@ -583,8 +574,7 @@  discard block
 block discarded – undo
583 574
 					$message = $this->language->lang('WAITING_REPORTED_DONE', 1);
584 575
 					$this->url->meta_refresh(3, $back_link);
585 576
 					trigger_error($message);
586
-				}
587
-				else
577
+				} else
588 578
 				{
589 579
 					$s_hidden_fields = '<input type="hidden" name="action" value="reports_close" />';
590 580
 					confirm_box(false, $this->language->lang('REPORT_A_CLOSE2_CONFIRM'), $s_hidden_fields);
@@ -621,13 +611,11 @@  discard block
 block discarded – undo
621 611
 			{
622 612
 				$select_select .= '<option value="images_approve">' . $this->language->lang('QUEUE_A_APPROVE') . '</option>';
623 613
 				$select_select .= '<option value="images_lock">' . $this->language->lang('QUEUE_A_LOCK') . '</option>';
624
-			}
625
-			else if ($image_data['image_status'] == 1)
614
+			} else if ($image_data['image_status'] == 1)
626 615
 			{
627 616
 				$select_select .= '<option value="images_unapprove">' . $this->language->lang('QUEUE_A_UNAPPROVE') . '</option>';
628 617
 				$select_select .= '<option value="images_lock">' . $this->language->lang('QUEUE_A_LOCK') . '</option>';
629
-			}
630
-			else
618
+			} else
631 619
 			{
632 620
 				$select_select .= '<option value="images_approve">' . $this->language->lang('QUEUE_A_APPROVE') . '</option>';
633 621
 				$select_select .= '<option value="images_unapprove">' . $this->language->lang('QUEUE_A_UNAPPROVE') . '</option>';
@@ -646,8 +634,7 @@  discard block
 block discarded – undo
646 634
 			if ($open_report)
647 635
 			{
648 636
 				$select_select .= '<option value="reports_close">' . $this->language->lang('REPORT_A_CLOSE') . '</option>';
649
-			}
650
-			else
637
+			} else
651 638
 			{
652 639
 				$select_select .= '<option value="reports_open">' . $this->language->lang('REPORT_A_OPEN') . '</option>';
653 640
 			}
@@ -725,8 +712,7 @@  discard block
 block discarded – undo
725 712
 			$message = $this->language->lang('WAITING_APPROVED_IMAGE', 1);
726 713
 			meta_refresh($meta_refresh_time, $image_backlink);
727 714
 			trigger_error($message);
728
-		}
729
-		else
715
+		} else
730 716
 		{
731 717
 			$this->template->assign_vars(array(
732 718
 				'S_NOTIFY_POSTER'			=> $show_notify,
@@ -775,8 +761,7 @@  discard block
 block discarded – undo
775 761
 			$message = sprintf($this->language->lang('WAITING_UNAPPROVED_IMAGE', 1));
776 762
 			meta_refresh($meta_refresh_time, $image_backlink);
777 763
 			trigger_error($message);
778
-		}
779
-		else
764
+		} else
780 765
 		{
781 766
 			$s_hidden_fields = '';
782 767
 			confirm_box(false, 'QUEUE_A_UNAPPROVE2', $s_hidden_fields);
@@ -817,8 +802,7 @@  discard block
 block discarded – undo
817 802
 			$this->album->update_info($moving_target);
818 803
 			meta_refresh($meta_refresh_time, $image_backlink);
819 804
 			trigger_error($message);
820
-		}
821
-		else
805
+		} else
822 806
 		{
823 807
 			$category_select = $this->album->get_albumbox(false, 'moving_target', $album_id, 'm_move', $album_id);
824 808
 			$this->template->assign_vars(array(
@@ -862,8 +846,7 @@  discard block
 block discarded – undo
862 846
 			$message = sprintf($this->language->lang('WAITING_LOCKED_IMAGE',1));
863 847
 			meta_refresh($meta_refresh_time, $image_backlink);
864 848
 			trigger_error($message);
865
-		}
866
-		else
849
+		} else
867 850
 		{
868 851
 			$s_hidden_fields = '';
869 852
 			confirm_box(false, 'QUEUE_A_LOCK2', $s_hidden_fields);
Please login to merge, or discard this patch.
core/controller/album.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -142,8 +142,7 @@  discard block
 block discarded – undo
142 142
 		try
143 143
 		{
144 144
 			$this->loader->load($album_id);
145
-		}
146
-		catch (\Exception $e)
145
+		} catch (\Exception $e)
147 146
 		{
148 147
 			throw new \phpbb\exception\http_exception(404, 'ALBUM_NOT_EXIST');
149 148
 		}
@@ -203,8 +202,7 @@  discard block
 block discarded – undo
203 202
 					'phpbbgallery_core_album_upload',
204 203
 					array('album_id' => (int) $album_id)
205 204
 				));
206
-			}
207
-			else
205
+			} else
208 206
 			{
209 207
 				if ($album_data['contest_start'] + $album_data['contest_rating'] > time())
210 208
 				{
@@ -261,8 +259,7 @@  discard block
 block discarded – undo
261 259
 		{
262 260
 			$image_status_check = '';
263 261
 			$image_counter = $album_data['album_images_real'];
264
-		}
265
-		else
262
+		} else
266 263
 		{
267 264
 			$image_status_check = " AND (image_status <> " . (int) \phpbbgallery\core\block::STATUS_UNAPPROVED . " OR image_user_id = $user_id)";
268 265
 
@@ -279,8 +276,7 @@  discard block
 block discarded – undo
279 276
 		if (in_array($sort_key, array('r', 'ra')))
280 277
 		{
281 278
 			$sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'ASC' : 'DESC');
282
-		}
283
-		else
279
+		} else
284 280
 		{
285 281
 			$sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'DESC' : 'ASC');
286 282
 		}
@@ -471,8 +467,7 @@  discard block
 block discarded – undo
471 467
 				));
472 468
 				$this->url->meta_refresh(3, $back_link);
473 469
 				return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY'));
474
-			}
475
-			else
470
+			} else
476 471
 			{
477 472
 				$this->notifications_helper->add_albums($album_id);
478 473
 				$this->template->assign_vars(array(
@@ -481,14 +476,12 @@  discard block
 block discarded – undo
481 476
 				$this->url->meta_refresh(3, $back_link);
482 477
 				return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY'));
483 478
 			}
484
-		}
485
-		else
479
+		} else
486 480
 		{
487 481
 			if ($this->notifications_helper->get_watched_album($album_id) == 1)
488 482
 			{
489 483
 				$lang = $this->language->lang('UNWATCH_ALBUM');
490
-			}
491
-			else
484
+			} else
492 485
 			{
493 486
 				$lang = $this->language->lang('WATCH_ALBUM');
494 487
 			}
@@ -520,8 +513,7 @@  discard block
 block discarded – undo
520 513
 			if (!$this->user->data['is_registered'])
521 514
 			{
522 515
 				login_box();
523
-			}
524
-			else
516
+			} else
525 517
 			{
526 518
 				//return $this->error('NOT_AUTHORISED', 403);
527 519
 				trigger_error($this->language->lang('NOT_AUTHORISED'));
Please login to merge, or discard this patch.
core/acp/permissions_module.php 1 patch
Braces   +17 added lines, -34 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@  discard block
 block discarded – undo
110 110
 						if (!$submit)
111 111
 						{
112 112
 							$this->permissions_v_mask();
113
-						}
114
-						else
113
+						} else
115 114
 						{
116 115
 							$this->permissions_p_mask();
117 116
 						}
@@ -449,13 +448,11 @@  discard block
 block discarded – undo
449 448
 		if (!sizeof($group_id) && !sizeof($user_id))
450 449
 		{
451 450
 			trigger_error('NO_VICTIM_SELECTED', E_USER_WARNING);
452
-		}
453
-		else if (sizeof($group_id))
451
+		} else if (sizeof($group_id))
454 452
 		{
455 453
 			$victim_mode = 'group';
456 454
 			$victim_id = $group_id;
457
-		}
458
-		else
455
+		} else
459 456
 		{
460 457
 			$victim_mode = 'user';
461 458
 			$victim_id = $user_id;
@@ -487,8 +484,7 @@  discard block
 block discarded – undo
487 484
 				$victim_list[$row['group_id']] = $victim_row;
488 485
 			}
489 486
 			$db->sql_freeresult($result);
490
-		}
491
-		else
487
+		} else
492 488
 		{
493 489
 			// Get the user information
494 490
 			$sql = 'SELECT username, user_id, user_colour
@@ -571,12 +567,10 @@  discard block
 block discarded – undo
571 567
 								if (isset($roles[$role_id][$permission]) && ($roles[$role_id][$permission] == $phpbb_ext_gallery_core_auth::ACL_YES))
572 568
 								{
573 569
 									$acl_s_yes++;
574
-								}
575
-								else if (isset($roles[$role_id][$permission]) && ($roles[$role_id][$permission] == $phpbb_ext_gallery_core_auth::ACL_NEVER))
570
+								} else if (isset($roles[$role_id][$permission]) && ($roles[$role_id][$permission] == $phpbb_ext_gallery_core_auth::ACL_NEVER))
576 571
 								{
577 572
 									$acl_s_never++;
578
-								}
579
-								else if (isset($roles[$role_id][$permission]) && ($roles[$role_id][$permission] == $phpbb_ext_gallery_core_auth::ACL_NO))
573
+								} else if (isset($roles[$role_id][$permission]) && ($roles[$role_id][$permission] == $phpbb_ext_gallery_core_auth::ACL_NO))
580 574
 								{
581 575
 									$acl_s_no++;
582 576
 								}
@@ -607,8 +601,7 @@  discard block
 block discarded – undo
607 601
 					}
608 602
 				}
609 603
 			}
610
-		}
611
-		else
604
+		} else
612 605
 		{
613 606
 			$template->assign_block_vars('c_mask', array(
614 607
 				'C_MASK_ID'				=> $p_system,
@@ -686,13 +679,11 @@  discard block
 block discarded – undo
686 679
 		if (!sizeof($group_id) && !sizeof($user_id))
687 680
 		{
688 681
 			trigger_error('NO_VICTIM_SELECTED', E_USER_WARNING);
689
-		}
690
-		else if (sizeof($group_id))
682
+		} else if (sizeof($group_id))
691 683
 		{
692 684
 			$victim_mode = 'group';
693 685
 			$victim_id = $group_id;
694
-		}
695
-		else
686
+		} else
696 687
 		{
697 688
 			$victim_mode = 'user';
698 689
 			$victim_id = $user_id;
@@ -741,8 +732,7 @@  discard block
 block discarded – undo
741 732
 						if (substr($p_mask, -6, 6) == '_count')
742 733
 						{
743 734
 							$auth_settings[$c_mask][$v_mask][$p_mask] = $value;
744
-						}
745
-						else
735
+						} else
746 736
 						{
747 737
 							$auth_settings[$c_mask][$v_mask][$p_mask] = ($value == ACL_YES) ? $phpbb_ext_gallery_core_auth::ACL_YES : (($value == ACL_NEVER) ? $phpbb_ext_gallery_core_auth::ACL_NEVER : $phpbb_ext_gallery_core_auth::ACL_NO);
748 738
 							// Do we have moderators?
@@ -792,15 +782,13 @@  discard block
 block discarded – undo
792 782
 								}
793 783
 								// We take all permissions of another c_mask, so:
794 784
 								break;
795
-							}
796
-							else
785
+							} else
797 786
 							{
798 787
 								// The chosen option was disabled: Hacking attempt?!
799 788
 								trigger_error('HACKING_ATTEMPT', E_USER_WARNING);
800 789
 							}
801 790
 						}
802
-					}
803
-					else if ($i_mask)
791
+					} else if ($i_mask)
804 792
 					{
805 793
 						// Inherit permissions of one [c_mask][v_mask]
806 794
 						$v_mask = (int) $v_mask;
@@ -821,8 +809,7 @@  discard block
 block discarded – undo
821 809
 								}
822 810
 								$auth_settings[$c_mask][$v_mask] = $auth_settings[$ci_mask][$vi_mask];
823 811
 								$p_mask_storage[$auth_settings[$c_mask][$v_mask]]['usage'][] = array('c_mask' => $c_mask, 'v_mask' => $v_mask);
824
-							}
825
-							else
812
+							} else
826 813
 							{
827 814
 								// The chosen option was disabled: Hacking attempt?!
828 815
 								trigger_error('HACKING_ATTEMPT', E_USER_WARNING);
@@ -895,8 +882,7 @@  discard block
 block discarded – undo
895 882
 						$victim_names[$row['group_id']] = $row['group_name'];
896 883
 					}
897 884
 					$db->sql_freeresult($result);
898
-				}
899
-				else
885
+				} else
900 886
 				{
901 887
 					// Get username's for the GALLERY_MODSCACHE_TABLE
902 888
 					$sql = 'SELECT user_id, username
@@ -962,8 +948,7 @@  discard block
 block discarded – undo
962 948
 									'group_id'		=> $usage['v_mask'],
963 949
 									'group_name'	=> $victim_names[$usage['v_mask']],
964 950
 								);
965
-							}
966
-							else
951
+							} else
967 952
 							{
968 953
 								$sql_moderators[] = array(
969 954
 									'album_id'		=> $usage['c_mask'],
@@ -972,8 +957,7 @@  discard block
 block discarded – undo
972 957
 								);
973 958
 							}
974 959
 						}
975
-					}
976
-					else
960
+					} else
977 961
 					{
978 962
 						$sql_permissions[] = array(
979 963
 							'perm_role_id'					=> $role_id,
@@ -1097,8 +1081,7 @@  discard block
 block discarded – undo
1097 1081
 				$phpbb_ext_gallery_core_auth->set_user_permissions('all', '');
1098 1082
 
1099 1083
 				trigger_error($this->language->lang('COPY_PERMISSIONS_SUCCESSFUL') . adm_back_link($this->u_action));
1100
-			}
1101
-			else
1084
+			} else
1102 1085
 			{
1103 1086
 				$s_hidden_fields = array(
1104 1087
 					'submit'			=> $submit,
Please login to merge, or discard this patch.
core/acp/gallery_logs_module.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
core/log.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -209,8 +209,7 @@  discard block
 block discarded – undo
209 209
 					$sql_array['GROUP_BY'] = 'l.description, l.log_id, i.image_id, i.image_album_id';
210 210
 				break;
211 211
 			}
212
-		}
213
-		else
212
+		} else
214 213
 		{
215 214
 			$sql_array['ORDER_BY'] = 'l.log_time ' . (isset($additional['sort_dir']) ? 'ASC' : 'DESC');
216 215
 			$sql_array['GROUP_BY'] = 'l.log_time, l.log_id, i.image_id, i.image_album_id';
@@ -299,8 +298,7 @@  discard block
 block discarded – undo
299 298
 				'params' => array(
300 299
 				),
301 300
 			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
302
-		}
303
-		else if ($album == -1)
301
+		} else if ($album == -1)
304 302
 		{
305 303
 			$url_array = array(
306 304
 				'i' => '-phpbbgallery-core-acp-gallery_logs_module',
@@ -322,8 +320,7 @@  discard block
 block discarded – undo
322 320
 			$url = http_build_query($url_array,'','&');
323 321
 
324 322
 			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
325
-		}
326
-		else
323
+		} else
327 324
 		{
328 325
 			$this->pagination->generate_template_pagination(array(
329 326
 				'routes' => array(
Please login to merge, or discard this patch.