Passed
Push — master ( 45da19...9278c7 )
by Stanislav
41:52 queued 26:52
created
core/controller/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 				'U_IMAGENAME'	=> ($last_image['image_id'] > 0) ? $last_image['image_name'] : false,
168 168
 				'U_IMAGE_ACTION'	=> $action_image,
169 169
 				'U_IMAGENAME_ACTION'	=> $this->helper->route('phpbbgallery_core_image', array('image_id' => $last_image['image_id'])),
170
-				'U_TIME'	=> ($last_image['image_id'] > 0) ?  $this->user->format_date($last_image['image_time']) : false,
170
+				'U_TIME'	=> ($last_image['image_id'] > 0) ? $this->user->format_date($last_image['image_time']) : false,
171 171
 				'U_UPLOADER'	=> ($last_image['image_id'] > 0) ? get_username_string('full', $last_image['image_user_id'], $last_image['image_username'], $last_image['image_user_colour']) : false,
172 172
 				'ALPHABET_NAVIGATION' => implode(' ', $alpha_links),
173 173
 			));
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 			'TOTAL_IMAGES'		=> ($this->gallery_config->get('disp_statistic')) ? $this->language->lang('TOTAL_IMAGES_SPRINTF', $this->gallery_config->get('num_images')) : '',
328 328
 			'TOTAL_COMMENTS'	=> ($this->gallery_config->get('allow_comments')) ? $this->language->lang('TOTAL_COMMENTS_SPRINTF', $this->gallery_config->get('num_comments')) : '',
329 329
 			'TOTAL_PGALLERIES'	=> ($this->gallery_auth->acl_check('a_list', \phpbbgallery\core\auth\auth::PERSONAL_ALBUM)) ? $this->language->lang('TOTAL_PEGAS_SPRINTF', $this->gallery_config->get('num_pegas')) : '',
330
-			'NEWEST_PGALLERIES'	=> ($this->gallery_config->get('num_pegas')) ? sprintf($this->language->lang('NEWEST_PGALLERY'), '<a href="' . $this->helper->route('phpbbgallery_core_album', array('album_id' => $this->gallery_config->get('newest_pega_album_id'))) . '" '. ($this->gallery_config->get('newest_pega_user_colour') ? 'class="username-coloured" style="color: #' . $this->gallery_config->get('newest_pega_user_colour') . ';"' : 'class="username"') . '>' . $this->gallery_config->get('newest_pega_username') . '</a>') : '',
330
+			'NEWEST_PGALLERIES'	=> ($this->gallery_config->get('num_pegas')) ? sprintf($this->language->lang('NEWEST_PGALLERY'), '<a href="' . $this->helper->route('phpbbgallery_core_album', array('album_id' => $this->gallery_config->get('newest_pega_album_id'))) . '" ' . ($this->gallery_config->get('newest_pega_user_colour') ? 'class="username-coloured" style="color: #' . $this->gallery_config->get('newest_pega_user_colour') . ';"' : 'class="username"') . '>' . $this->gallery_config->get('newest_pega_username') . '</a>') : '',
331 331
 		));
332 332
 
333 333
 		$this->template->assign_vars(array(
@@ -425,9 +425,9 @@  discard block
 block discarded – undo
425 425
 
426 426
 			while ($row = $this->db->sql_fetchrow($result))
427 427
 			{
428
-				$birthday_username	= get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
429
-				$birthday_year		= (int) substr($row['user_birthday'], -4);
430
-				$birthday_age		= ($birthday_year) ? max(0, $now['year'] - $birthday_year) : '';
428
+				$birthday_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
429
+				$birthday_year = (int) substr($row['user_birthday'], -4);
430
+				$birthday_age = ($birthday_year) ? max(0, $now['year'] - $birthday_year) : '';
431 431
 
432 432
 				$this->template->assign_block_vars('birthdays', array(
433 433
 					'USERNAME'	=> $birthday_username,
Please login to merge, or discard this patch.