@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | $sql = 'SELECT a2.* |
98 | 98 | FROM ' . $this->table_albums . ' a1 |
99 | - LEFT JOIN ' . $this->table_albums . ' a2 ON (' . $condition .') AND a2.album_user_id = ' . (int) $branch_user_id .' |
|
99 | + LEFT JOIN ' . $this->table_albums . ' a2 ON (' . $condition . ') AND a2.album_user_id = ' . (int) $branch_user_id . ' |
|
100 | 100 | WHERE a1.album_id = ' . (int) $album_id . ' |
101 | 101 | AND a1.album_user_id = ' . (int) $branch_user_id . ' |
102 | 102 | ORDER BY a2.left_id ' . (($order == 'descending') ? 'ASC' : 'DESC'); |
@@ -179,9 +179,9 @@ discard block |
||
179 | 179 | 'ALBUM_ID' => $album_data['album_id'], |
180 | 180 | 'ALBUM_NAME' => $album_data['album_name'], |
181 | 181 | 'ALBUM_DESC' => generate_text_for_display($album_data['album_desc'], $album_data['album_desc_uid'], $album_data['album_desc_bitfield'], $album_data['album_desc_options']), |
182 | - 'ALBUM_CONTEST_START' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_START' . ((($album_data['contest_start']) < time())? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start']), false, true)) : '', |
|
183 | - 'ALBUM_CONTEST_RATING' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_RATING_START' . ((($album_data['contest_start'] + $album_data['contest_rating']) < time())? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start'] + $album_data['contest_rating']), false, true)) : '', |
|
184 | - 'ALBUM_CONTEST_END' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_END' . ((($album_data['contest_start'] + $album_data['contest_end']) < time())? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start'] + $album_data['contest_end']), false, true)) : '', |
|
182 | + 'ALBUM_CONTEST_START' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_START' . ((($album_data['contest_start']) < time()) ? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start']), false, true)) : '', |
|
183 | + 'ALBUM_CONTEST_RATING' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_RATING_START' . ((($album_data['contest_start'] + $album_data['contest_rating']) < time()) ? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start'] + $album_data['contest_rating']), false, true)) : '', |
|
184 | + 'ALBUM_CONTEST_END' => ($album_data['album_type'] == (int) \phpbbgallery\core\block::TYPE_CONTEST) ? $this->language->lang('CONTEST_END' . ((($album_data['contest_start'] + $album_data['contest_end']) < time()) ? 'ED' : 'S'), $this->user->format_date(($album_data['contest_start'] + $album_data['contest_end']), false, true)) : '', |
|
185 | 185 | 'U_VIEW_ALBUM' => $this->helper->route('phpbbgallery_core_album', array('album_id' => (int) $album_data['album_id'])), |
186 | 186 | )); |
187 | 187 | |
@@ -696,9 +696,9 @@ discard block |
||
696 | 696 | // phpbb_ext_gallery_core_image::generate_link('thumbnail', $phpbb_ext_gallery->config->get('link_thumbnail'), $lastimage_image_id, $lastimage_name, $lastimage_album_id); |
697 | 697 | $lastimage_uc_thumbnail = $row['album_image'] ? generate_board_url() . '/' . $row['album_image'] : $this->helper->route('phpbbgallery_core_image_file_mini', array('image_id' => $row['album_last_image_id'])); |
698 | 698 | // 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); |
699 | - $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); |
|
699 | + $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); |
|
700 | 700 | // 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); |
701 | - $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); |
|
701 | + $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); |
|
702 | 702 | } |
703 | 703 | else |
704 | 704 | { |
@@ -226,8 +226,7 @@ discard block |
||
226 | 226 | SET album_parents = '" . $this->db->sql_escape($album_data['album_parents']) . "' |
227 | 227 | WHERE parent_id = " . (int) $album_data['parent_id']; |
228 | 228 | $this->db->sql_query($sql); |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $album_parents = unserialize($album_data['album_parents']); |
233 | 232 | } |
@@ -295,16 +294,14 @@ discard block |
||
295 | 294 | if (!empty($row['user_id'])) |
296 | 295 | { |
297 | 296 | $album_moderators[$a_id][] = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']); |
298 | - } |
|
299 | - else |
|
297 | + } else |
|
300 | 298 | { |
301 | 299 | $group_name = (($row['group_type'] == GROUP_SPECIAL) ? $this->language->lang('G_' . $row['group_name']) : $row['group_name']); |
302 | 300 | |
303 | 301 | if ($this->user->data['user_id'] != ANONYMOUS && !$this->auth->acl_get('u_viewprofile')) |
304 | 302 | { |
305 | 303 | $album_moderators[$a_id][] = '<span' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . '>' . $group_name . '</span>'; |
306 | - } |
|
307 | - else |
|
304 | + } else |
|
308 | 305 | { |
309 | 306 | $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&g=' . $row['group_id']) . '">' . $group_name . '</a>'; |
310 | 307 | } |
@@ -348,8 +345,7 @@ discard block |
||
348 | 345 | } |
349 | 346 | $root_data = array('album_id' => (int) \phpbbgallery\core\block::PUBLIC_ALBUM); |
350 | 347 | $sql_where = 'a.album_user_id = ' . (int) \phpbbgallery\core\block::PUBLIC_ALBUM; |
351 | - } |
|
352 | - else if ($root_data == 'personal') |
|
348 | + } else if ($root_data == 'personal') |
|
353 | 349 | { |
354 | 350 | if ($mark_read == 'albums') |
355 | 351 | { |
@@ -366,8 +362,7 @@ discard block |
||
366 | 362 | { |
367 | 363 | $sql_where .= ' AND u.username_clean NOT ' . $this->db->sql_like_expression(chr($i) . $this->db->any_char); |
368 | 364 | } |
369 | - } |
|
370 | - else if ($first_char) |
|
365 | + } else if ($first_char) |
|
371 | 366 | { |
372 | 367 | $sql_where .= ' AND u.username_clean ' . $this->db->sql_like_expression(substr($first_char, 0, 1) . $this->db->any_char); |
373 | 368 | } |
@@ -411,8 +406,7 @@ discard block |
||
411 | 406 | 'phpbbgallery_core_search_recent_page',), |
412 | 407 | 'params' => array()), 'pagination', 'page', $num_pegas, $limit, $start |
413 | 408 | );*/ |
414 | - } |
|
415 | - else |
|
409 | + } else |
|
416 | 410 | { |
417 | 411 | $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']; |
418 | 412 | } |
@@ -500,10 +494,12 @@ discard block |
||
500 | 494 | continue; |
501 | 495 | } |
502 | 496 | |
503 | - if (false)//@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id'])) |
|
497 | + if (false) { |
|
498 | + //@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id'])) |
|
504 | 499 | { |
505 | 500 | // if the user does not have permissions to list this album, skip everything until next branch |
506 | 501 | $right_id = $row['right_id']; |
502 | + } |
|
507 | 503 | continue; |
508 | 504 | } |
509 | 505 | |
@@ -528,8 +524,7 @@ discard block |
||
528 | 524 | $album_rows[$parent_id]['album_type_last_image'] = $row['album_type']; |
529 | 525 | $album_rows[$parent_id]['album_contest_marked'] = $row['contest_marked']; |
530 | 526 | $album_rows[$parent_id]['orig_album_last_image_time'] = $row['album_last_image_time']; |
531 | - } |
|
532 | - else if ($row['album_type']) |
|
527 | + } else if ($row['album_type']) |
|
533 | 528 | { |
534 | 529 | $subalbums[$parent_id][$album_id]['display'] = ($row['display_on_index']) ? true : false; |
535 | 530 | $subalbums[$parent_id][$album_id]['name'] = $row['album_name']; |
@@ -571,16 +566,14 @@ discard block |
||
571 | 566 | { |
572 | 567 | $this->misc->markread('all'); |
573 | 568 | $message = $this->language->lang('RETURN_INDEX', '<a href="' . $redirect . '">', '</a>'); |
574 | - } |
|
575 | - else |
|
569 | + } else |
|
576 | 570 | { |
577 | 571 | $this->misc->markread('albums', $album_ids); |
578 | 572 | $message = $this->language->lang('RETURN_ALBUM', '<a href="' . $redirect . '">', '</a>'); |
579 | 573 | } |
580 | 574 | meta_refresh(3, $redirect); |
581 | 575 | trigger_error($this->language->lang('ALBUMS_MARKED') . '<br /><br />' . $message); |
582 | - } |
|
583 | - else |
|
576 | + } else |
|
584 | 577 | { |
585 | 578 | $message = $this->language->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); |
586 | 579 | meta_refresh(3, $redirect); |
@@ -658,8 +651,7 @@ discard block |
||
658 | 651 | 'name' => $subalbum_row['name'], |
659 | 652 | 'unread' => $subalbum_unread, |
660 | 653 | ); |
661 | - } |
|
662 | - else |
|
654 | + } else |
|
663 | 655 | { |
664 | 656 | unset($subalbums[$album_id][$subalbum_id]); |
665 | 657 | } |
@@ -672,8 +664,7 @@ discard block |
||
672 | 664 | |
673 | 665 | $l_subalbums = (sizeof($subalbums[$album_id]) == 1) ? $this->language->lang('SUBALBUM') : $this->language->lang('SUBALBUMS'); |
674 | 666 | $folder_image = ($album_unread) ? 'forum_unread_subforum' : 'forum_read_subforum'; |
675 | - } |
|
676 | - else |
|
667 | + } else |
|
677 | 668 | { |
678 | 669 | $folder_alt = ($album_unread) ? 'NEW_IMAGES' : 'NO_NEW_IMAGES'; |
679 | 670 | $folder_image = ($album_unread) ? 'forum_unread' : 'forum_read'; |
@@ -699,8 +690,7 @@ discard block |
||
699 | 690 | $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); |
700 | 691 | // 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); |
701 | 692 | $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); |
702 | - } |
|
703 | - else |
|
693 | + } else |
|
704 | 694 | { |
705 | 695 | $lastimage_time = $lastimage_album_type = $lastimage_contest_marked = 0; |
706 | 696 | $lastimage_uc_fake_thumbnail = $lastimage_uc_fake_thumbnail_url = $lastimage_uc_thumbnail = $lastimage_uc_name = $lastimage_uc_icon = ''; |
@@ -250,8 +250,7 @@ discard block |
||
250 | 250 | } |
251 | 251 | |
252 | 252 | $this->loader->load($this->data['image_album_id']); |
253 | - } |
|
254 | - catch (\Exception $e) |
|
253 | + } catch (\Exception $e) |
|
255 | 254 | { |
256 | 255 | throw new \phpbb\exception\http_exception(404, 'INVALID_IMAGE'); |
257 | 256 | } |
@@ -264,8 +263,7 @@ discard block |
||
264 | 263 | if ($this->gallery_auth->acl_check('m_status', $album_id, $album_data['album_user_id'])) |
265 | 264 | { |
266 | 265 | $image_status_check = ''; |
267 | - } |
|
268 | - else |
|
266 | + } else |
|
269 | 267 | { |
270 | 268 | $user_id = (int) $this->user->data['user_id']; |
271 | 269 | $image_status_check = ' AND (image_status = ' . \phpbbgallery\core\block::STATUS_APPROVED . ' OR image_user_id = ' . $user_id . ')'; |
@@ -322,8 +320,7 @@ discard block |
||
322 | 320 | if (in_array($sort_key, array('r', 'ra'))) |
323 | 321 | { |
324 | 322 | $sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'ASC' : 'DESC'); |
325 | - } |
|
326 | - else |
|
323 | + } else |
|
327 | 324 | { |
328 | 325 | $sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'DESC' : 'ASC'); |
329 | 326 | } |
@@ -551,8 +548,7 @@ discard block |
||
551 | 548 | if (isset($album_data['contest_start'])) |
552 | 549 | { |
553 | 550 | $s_hide_comment_input = (time() < ($album_data['contest_start'] + $album_data['contest_end'])) ? true : false; |
554 | - } |
|
555 | - else |
|
551 | + } else |
|
556 | 552 | { |
557 | 553 | $s_hide_comment_input = false; |
558 | 554 | } |
@@ -598,8 +594,7 @@ discard block |
||
598 | 594 | //$this->template->assign_var('S_COMMENT_ACTION', append_sid($this->url->path('full') . 'comment/' . $image_id . '/add/0')); |
599 | 595 | $this->template->assign_var('S_COMMENT_ACTION', $this->helper->route('phpbbgallery_core_comment_add', array('image_id' => $image_id, 'comment_id' => 0))); |
600 | 596 | } |
601 | - } |
|
602 | - else if ($this->gallery_config->get('comment_user_control') && !$image_data['image_allow_comments']) |
|
597 | + } else if ($this->gallery_config->get('comment_user_control') && !$image_data['image_allow_comments']) |
|
603 | 598 | { |
604 | 599 | $this->template->assign_var('S_COMMENTS_DISABLED', true); |
605 | 600 | } |
@@ -790,8 +785,7 @@ discard block |
||
790 | 785 | 'NAME' => $field_data['PROFILE_FIELD_NAME'], |
791 | 786 | 'U_CONTACT' => $field_data['PROFILE_FIELD_CONTACT'], |
792 | 787 | )); |
793 | - } |
|
794 | - else |
|
788 | + } else |
|
795 | 789 | { |
796 | 790 | $this->template->assign_block_vars('commentrow.custom_fields', $field_data); |
797 | 791 | } |
@@ -917,8 +911,7 @@ discard block |
||
917 | 911 | { |
918 | 912 | $change_image_count = true; |
919 | 913 | } |
920 | - } |
|
921 | - else if ($this->request->variable('change_author', '', true)) |
|
914 | + } else if ($this->request->variable('change_author', '', true)) |
|
922 | 915 | { |
923 | 916 | $errors[] = $this->language->lang('INVALID_USERNAME'); |
924 | 917 | } |
@@ -939,8 +932,7 @@ discard block |
||
939 | 932 | { |
940 | 933 | $personal_album_id = $this->album->generate_personal_album($image_data['image_username'], $image_data['image_user_id'], $image_data['image_user_colour'], $image_user); |
941 | 934 | } |
942 | - } |
|
943 | - else |
|
935 | + } else |
|
944 | 936 | { |
945 | 937 | $personal_album_id = $this->gallery_user->get_data('personal_album_id'); |
946 | 938 | if (!$personal_album_id && $this->gallery_auth->acl_check('i_upload', $this->gallery_auth->get_own_album())) |
@@ -1108,8 +1100,7 @@ discard block |
||
1108 | 1100 | $this->notification_helper->read('approval', $album_id); |
1109 | 1101 | $this->url->meta_refresh(3, $album_backlink); |
1110 | 1102 | trigger_error($message); |
1111 | - } |
|
1112 | - else |
|
1103 | + } else |
|
1113 | 1104 | { |
1114 | 1105 | if (isset($_POST['cancel'])) |
1115 | 1106 | { |
@@ -1117,8 +1108,7 @@ discard block |
||
1117 | 1108 | $message .= '<br />' . sprintf($this->language->lang('CLICK_RETURN_IMAGE'), '<a href="' . $image_backlink . '">', '</a>'); |
1118 | 1109 | $this->url->meta_refresh(3, $image_backlink); |
1119 | 1110 | trigger_error($message); |
1120 | - } |
|
1121 | - else |
|
1111 | + } else |
|
1122 | 1112 | { |
1123 | 1113 | confirm_box(false, 'DELETE_IMAGE2', $s_hidden_fields); |
1124 | 1114 | } |
@@ -1223,8 +1213,7 @@ discard block |
||
1223 | 1213 | { |
1224 | 1214 | // @todo Add "redirect after login" url |
1225 | 1215 | login_box(); |
1226 | - } |
|
1227 | - else |
|
1216 | + } else |
|
1228 | 1217 | { |
1229 | 1218 | //return $this->error('NOT_AUTHORISED', 403); |
1230 | 1219 | redirect('gallery/album/' . $album_id); |
@@ -133,8 +133,7 @@ discard block |
||
133 | 133 | try |
134 | 134 | { |
135 | 135 | $this->loader->load($album_id); |
136 | - } |
|
137 | - catch (\Exception $e) |
|
136 | + } catch (\Exception $e) |
|
138 | 137 | { |
139 | 138 | throw new \phpbb\exception\http_exception(404, 'ALBUM_NOT_EXIST'); |
140 | 139 | } |
@@ -194,8 +193,7 @@ discard block |
||
194 | 193 | 'phpbbgallery_core_album_upload', |
195 | 194 | array('album_id' => (int) $album_id) |
196 | 195 | )); |
197 | - } |
|
198 | - else |
|
196 | + } else |
|
199 | 197 | { |
200 | 198 | if ($album_data['contest_start'] + $album_data['contest_rating'] > time()) |
201 | 199 | { |
@@ -252,8 +250,7 @@ discard block |
||
252 | 250 | { |
253 | 251 | $image_status_check = ''; |
254 | 252 | $image_counter = $album_data['album_images_real']; |
255 | - } |
|
256 | - else |
|
253 | + } else |
|
257 | 254 | { |
258 | 255 | $image_status_check = " AND (image_status <> " . (int) \phpbbgallery\core\block::STATUS_UNAPPROVED . " OR image_user_id = $user_id)"; |
259 | 256 | $image_counter = $album_data['album_images_real']; |
@@ -262,8 +259,7 @@ discard block |
||
262 | 259 | if (in_array($sort_key, array('r', 'ra'))) |
263 | 260 | { |
264 | 261 | $sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'ASC' : 'DESC'); |
265 | - } |
|
266 | - else |
|
262 | + } else |
|
267 | 263 | { |
268 | 264 | $sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'DESC' : 'ASC'); |
269 | 265 | } |
@@ -487,8 +483,7 @@ discard block |
||
487 | 483 | )); |
488 | 484 | $this->url->meta_refresh(3, $back_link); |
489 | 485 | return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY')); |
490 | - } |
|
491 | - else |
|
486 | + } else |
|
492 | 487 | { |
493 | 488 | $this->notifications_helper->add_albums($album_id); |
494 | 489 | $this->template->assign_vars(array( |
@@ -497,14 +492,12 @@ discard block |
||
497 | 492 | $this->url->meta_refresh(3, $back_link); |
498 | 493 | return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY')); |
499 | 494 | } |
500 | - } |
|
501 | - else |
|
495 | + } else |
|
502 | 496 | { |
503 | 497 | if ($this->notifications_helper->get_watched_album($album_id) == 1) |
504 | 498 | { |
505 | 499 | $lang = $this->language->lang('UNWATCH_ALBUM'); |
506 | - } |
|
507 | - else |
|
500 | + } else |
|
508 | 501 | { |
509 | 502 | $lang = $this->language->lang('WATCH_ALBUM'); |
510 | 503 | } |
@@ -536,8 +529,7 @@ discard block |
||
536 | 529 | if (!$this->user->data['is_registered']) |
537 | 530 | { |
538 | 531 | login_box(); |
539 | - } |
|
540 | - else |
|
532 | + } else |
|
541 | 533 | { |
542 | 534 | //return $this->error('NOT_AUTHORISED', 403); |
543 | 535 | trigger_error($this->language->lang('NOT_AUTHORISED')); |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $album_user_id = $image_data['album_user_id']; |
371 | 371 | |
372 | 372 | //@todo: $rating = new phpbb_gallery_image_rating($image_data['image_id'], $image_data, $image_data); |
373 | - $image_data['rating'] = '0';//@todo: $rating->get_image_rating(false, false); |
|
373 | + $image_data['rating'] = '0'; //@todo: $rating->get_image_rating(false, false); |
|
374 | 374 | //@todo: unset($rating); |
375 | 375 | |
376 | 376 | $s_user_allowed = (($image_data['image_user_id'] == $this->user->data['user_id']) && ($album_status != \phpbbgallery\core\block::ALBUM_LOCKED)); |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | |
429 | 429 | 'U_USER_IP' => $show_ip && $this->auth->acl_check('m_status', $image_data['image_album_id'], $album_user_id) ? $image_data['image_user_ip'] : false, |
430 | 430 | 'S_IMAGE_REPORTED' => $image_data['image_reported'], |
431 | - 'U_IMAGE_REPORTED' => '',//($image_data['image_reported']) ? $phpbb_ext_gallery->url->append_sid('mcp', "mode=report_details&album_id={$image_data['image_album_id']}&option_id=" . $image_data['image_reported']) : '', |
|
431 | + 'U_IMAGE_REPORTED' => '', //($image_data['image_reported']) ? $phpbb_ext_gallery->url->append_sid('mcp', "mode=report_details&album_id={$image_data['image_album_id']}&option_id=" . $image_data['image_reported']) : '', |
|
432 | 432 | 'S_STATUS_APPROVED' => ($image_data['image_status'] == \phpbbgallery\core\block::STATUS_APPROVED) ? true : false, |
433 | 433 | 'S_STATUS_UNAPPROVED' => ($image_data['image_status'] == \phpbbgallery\core\block::STATUS_UNAPPROVED) ? true : false, |
434 | 434 | 'S_STATUS_UNAPPROVED_ACTION' => ($this->auth->acl_check('m_status', $image_data['image_album_id'], $album_user_id) && $image_data['image_status'] == \phpbbgallery\core\block::STATUS_UNAPPROVED) ? $this->helper->route('phpbbgallery_core_moderate_image_approve', array('image_id' => $image_data['image_id'])) : '', |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | 'S_STATUS_LOCKED' => ($image_data['image_status'] == \phpbbgallery\core\block::STATUS_LOCKED) ? true : false, |
437 | 437 | |
438 | 438 | 'U_REPORT' => ($this->auth->acl_check('m_report', $image_data['image_album_id'], $album_user_id) && $image_data['image_reported']) ? '123'/*$this->url->append_sid('mcp', "mode=report_details&album_id={$image_data['image_album_id']}&option_id=" . $image_data['image_reported'])*/ : '', |
439 | - 'U_STATUS' => '',//($this->auth->acl_check('m_status', $image_data['image_album_id'], $album_user_id)) ? $phpbb_ext_gallery->url->append_sid('mcp', "mode=queue_details&album_id={$image_data['image_album_id']}&option_id=" . $image_data['image_id']) : '', |
|
439 | + 'U_STATUS' => '', //($this->auth->acl_check('m_status', $image_data['image_album_id'], $album_user_id)) ? $phpbb_ext_gallery->url->append_sid('mcp', "mode=queue_details&album_id={$image_data['image_album_id']}&option_id=" . $image_data['image_id']) : '', |
|
440 | 440 | 'L_STATUS' => ($image_data['image_status'] == \phpbbgallery\core\block::STATUS_UNAPPROVED) ? $this->language->lang('APPROVE_IMAGE') : (($image_data['image_status'] == \phpbbgallery\core\block::STATUS_APPROVED) ? $this->language->lang('CHANGE_IMAGE_STATUS') : $this->language->lang('UNLOCK_IMAGE')), |
441 | 441 | |
442 | 442 | 'S_CONTEST_RANK' => $image_data['image_contest_rank'], |