@@ -244,8 +244,7 @@ |
||
| 244 | 244 | if (is_array($ids)) |
| 245 | 245 | { |
| 246 | 246 | return array_map('intval', $ids); |
| 247 | - } |
|
| 248 | - else |
|
| 247 | + } else |
|
| 249 | 248 | { |
| 250 | 249 | return array((int) $ids); |
| 251 | 250 | } |
@@ -85,8 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $mod_array[] = 0; |
| 87 | 87 | } |
| 88 | - } |
|
| 89 | - else |
|
| 88 | + } else |
|
| 90 | 89 | { |
| 91 | 90 | $mod_array = array($album); |
| 92 | 91 | } |
@@ -162,8 +161,7 @@ discard block |
||
| 162 | 161 | $this->template->assign_vars(array( |
| 163 | 162 | 'TOTAL_PAGES' => $this->lang->lang('PAGE_TITLE_NUMBER', $page + 1), |
| 164 | 163 | )); |
| 165 | - } |
|
| 166 | - else |
|
| 164 | + } else |
|
| 167 | 165 | { |
| 168 | 166 | $this->pagination->generate_template_pagination(array( |
| 169 | 167 | 'routes' => array( |
@@ -160,8 +160,7 @@ discard block |
||
| 160 | 160 | if (isset($this->data[$key])) |
| 161 | 161 | { |
| 162 | 162 | return $this->data[$key]; |
| 163 | - } |
|
| 164 | - else if ($default && $this->get_default_value($key) !== null) |
|
| 163 | + } else if ($default && $this->get_default_value($key) !== null) |
|
| 165 | 164 | { |
| 166 | 165 | return $this->get_default_value($key); |
| 167 | 166 | } |
@@ -359,12 +358,10 @@ discard block |
||
| 359 | 358 | if (is_array($user_ids) && !empty($user_ids)) |
| 360 | 359 | { |
| 361 | 360 | $sql_where = 'WHERE ' . $this->db->sql_in_set('user_id', array_map('intval', $user_ids)); |
| 362 | - } |
|
| 363 | - else if ($user_ids == 'all') |
|
| 361 | + } else if ($user_ids == 'all') |
|
| 364 | 362 | { |
| 365 | 363 | $sql_where = ''; |
| 366 | - } |
|
| 367 | - else |
|
| 364 | + } else |
|
| 368 | 365 | { |
| 369 | 366 | $sql_where = 'WHERE user_id = ' . (int) $user_ids; |
| 370 | 367 | } |
@@ -395,8 +392,7 @@ discard block |
||
| 395 | 392 | { |
| 396 | 393 | // While incrementing, the iamges might be lower than 0. |
| 397 | 394 | $validated_data[$name] = (int) $value; |
| 398 | - } |
|
| 399 | - else |
|
| 395 | + } else |
|
| 400 | 396 | { |
| 401 | 397 | $validated_data[$name] = max(0, (int) $value); |
| 402 | 398 | } |
@@ -542,8 +538,7 @@ discard block |
||
| 542 | 538 | 'warnings' => 0, |
| 543 | 539 | 'allow_pm' => 0, |
| 544 | 540 | ); |
| 545 | - } |
|
| 546 | - else |
|
| 541 | + } else |
|
| 547 | 542 | { |
| 548 | 543 | $user_sig = ''; |
| 549 | 544 | // We add the signature to every posters entry because enable_sig is post dependent |
@@ -589,8 +584,7 @@ discard block |
||
| 589 | 584 | if ((!empty($row['user_allow_viewemail']) && $this->auth->acl_get('u_sendemail')) || $this->auth->acl_get('a_email')) |
| 590 | 585 | { |
| 591 | 586 | $user_cache[$user_id]['email'] = ($this->config['board_email_form'] && $this->config['email_enable']) ? append_sid("{$this->root_path}memberlist.$this->php_ext", "mode=email&u=$user_id") : (($this->config['board_hide_emails'] && !$this->auth->acl_get('a_email')) ? '' : 'mailto:' . $row['user_email']); |
| 592 | - } |
|
| 593 | - else |
|
| 587 | + } else |
|
| 594 | 588 | { |
| 595 | 589 | $user_cache[$user_id]['email'] = ''; |
| 596 | 590 | } |
@@ -603,8 +597,7 @@ discard block |
||
| 603 | 597 | if ($diff == 0) |
| 604 | 598 | { |
| 605 | 599 | $diff = ($now['mday'] - $bday_day < 0) ? 1 : 0; |
| 606 | - } |
|
| 607 | - else |
|
| 600 | + } else |
|
| 608 | 601 | { |
| 609 | 602 | $diff = ($diff < 0) ? 1 : 0; |
| 610 | 603 | } |
@@ -222,8 +222,7 @@ discard block |
||
| 222 | 222 | { |
| 223 | 223 | $padding .= ' '; |
| 224 | 224 | $padding_store[$row['parent_id']] = $padding; |
| 225 | - } |
|
| 226 | - else if ($row['left_id'] > $right + 1) |
|
| 225 | + } else if ($row['left_id'] > $right + 1) |
|
| 227 | 226 | { |
| 228 | 227 | $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : ''; |
| 229 | 228 | } |
@@ -249,15 +248,13 @@ discard block |
||
| 249 | 248 | if (($select_id == $this->gallery_auth->get_setting_permissions()) && !$row['album_user_id']) |
| 250 | 249 | { |
| 251 | 250 | $list = true; |
| 252 | - } |
|
| 253 | - else if (!$row['album_user_id']) |
|
| 251 | + } else if (!$row['album_user_id']) |
|
| 254 | 252 | { |
| 255 | 253 | if ($this->gallery_auth->acl_check('a_list', $row['album_id'], $row['album_user_id']) || defined('IN_ADMIN')) |
| 256 | 254 | { |
| 257 | 255 | $list = true; |
| 258 | 256 | } |
| 259 | - } |
|
| 260 | - else if (!$ignore_personals) |
|
| 257 | + } else if (!$ignore_personals) |
|
| 261 | 258 | { |
| 262 | 259 | if ($row['album_user_id'] == $this->user->data['user_id']) |
| 263 | 260 | { |
@@ -268,16 +265,14 @@ discard block |
||
| 268 | 265 | if ($requested_permission) |
| 269 | 266 | { |
| 270 | 267 | $requested_own = !$this->gallery_auth->acl_check($requested_permission, $this->gallery_auth->get_own_album()); |
| 271 | - } |
|
| 272 | - else |
|
| 268 | + } else |
|
| 273 | 269 | { |
| 274 | 270 | $requested_own = false; // We need the negated version of true here |
| 275 | 271 | } |
| 276 | 272 | } |
| 277 | 273 | $list = (!$list) ? $access_own : $list; |
| 278 | 274 | $disabled = (!$disabled) ? $requested_own : $disabled; |
| 279 | - } |
|
| 280 | - else if ($row['album_user_id']) |
|
| 275 | + } else if ($row['album_user_id']) |
|
| 281 | 276 | { |
| 282 | 277 | if (!$c_access_personal) |
| 283 | 278 | { |
@@ -286,8 +281,7 @@ discard block |
||
| 286 | 281 | if ($requested_permission) |
| 287 | 282 | { |
| 288 | 283 | $requested_personal = !$this->gallery_auth->acl_check($requested_permission, $this->gallery_auth->get_personal_album()); |
| 289 | - } |
|
| 290 | - else |
|
| 284 | + } else |
|
| 291 | 285 | { |
| 292 | 286 | $requested_personal = false; // We need the negated version of true here |
| 293 | 287 | } |
@@ -299,8 +293,7 @@ discard block |
||
| 299 | 293 | if (($album_user_id != \phpbbgallery\core\block::PUBLIC_ALBUM) && ($album_user_id != $row['album_user_id'])) |
| 300 | 294 | { |
| 301 | 295 | $list = false; |
| 302 | - } |
|
| 303 | - else if (($album_user_id != \phpbbgallery\core\block::PUBLIC_ALBUM) && ($row['parent_id'] == 0)) |
|
| 296 | + } else if (($album_user_id != \phpbbgallery\core\block::PUBLIC_ALBUM) && ($row['parent_id'] == 0)) |
|
| 304 | 297 | { |
| 305 | 298 | $disabled = true; |
| 306 | 299 | } |
@@ -318,8 +311,7 @@ discard block |
||
| 318 | 311 | $gallery_albumbox = "<select name='$select_name' id='$select_name'>"; |
| 319 | 312 | $gallery_albumbox .= $album_list; |
| 320 | 313 | $gallery_albumbox .= '</select>'; |
| 321 | - } |
|
| 322 | - else |
|
| 314 | + } else |
|
| 323 | 315 | { |
| 324 | 316 | $gallery_albumbox = $album_list; |
| 325 | 317 | } |
@@ -388,8 +380,7 @@ discard block |
||
| 388 | 380 | 'album_last_user_colour' => $row['image_user_colour'], |
| 389 | 381 | 'album_last_user_id' => $row['image_user_id'], |
| 390 | 382 | ); |
| 391 | - } |
|
| 392 | - else |
|
| 383 | + } else |
|
| 393 | 384 | { |
| 394 | 385 | // No approved image, so we clear the columns |
| 395 | 386 | $sql_ary = array( |
@@ -363,8 +363,7 @@ discard block |
||
| 363 | 363 | { |
| 364 | 364 | $url = $this->url->append_sid('image_page', "album_id=$album_id&image_id=$next_image{$additional_parameters}"); |
| 365 | 365 | $tpl = '<a href="{IMAGE_URL}" title="{IMAGE_NAME}">{CONTENT}</a>'; |
| 366 | - } |
|
| 367 | - else |
|
| 366 | + } else |
|
| 368 | 367 | { |
| 369 | 368 | $tpl = '{CONTENT}'; |
| 370 | 369 | } |
@@ -440,8 +439,7 @@ discard block |
||
| 440 | 439 | { |
| 441 | 440 | $this->gallery_config->inc('num_images', (int) $num_images); |
| 442 | 441 | $this->gallery_config->inc('num_comments', (int) $num_comments); |
| 443 | - } |
|
| 444 | - else |
|
| 442 | + } else |
|
| 445 | 443 | { |
| 446 | 444 | $this->gallery_config->dec('num_images', (int) $num_images); |
| 447 | 445 | $this->gallery_config->dec('num_comments', (int) $num_comments); |
@@ -223,14 +223,12 @@ discard block |
||
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | trigger_error($message_string . adm_back_link($this->u_action)); |
| 226 | - } |
|
| 227 | - else if ($delete || $prune || (isset($_POST['cancel']))) |
|
| 226 | + } else if ($delete || $prune || (isset($_POST['cancel']))) |
|
| 228 | 227 | { |
| 229 | 228 | if (isset($_POST['cancel'])) |
| 230 | 229 | { |
| 231 | 230 | trigger_error($user->lang['CLEAN_GALLERY_ABORT'] . adm_back_link($this->u_action), E_USER_WARNING); |
| 232 | - } |
|
| 233 | - else |
|
| 231 | + } else |
|
| 234 | 232 | { |
| 235 | 233 | $clean_gallery_confirm = $user->lang['CONFIRM_CLEAN']; |
| 236 | 234 | if ($missing_sources) |
@@ -261,8 +259,7 @@ discard block |
||
| 261 | 259 | if (in_array($row['album_user_id'], $personals_bad)) |
| 262 | 260 | { |
| 263 | 261 | $personals_bad_names[] = $row['album_name']; |
| 264 | - } |
|
| 265 | - else |
|
| 262 | + } else |
|
| 266 | 263 | { |
| 267 | 264 | $missing_personals_names[] = $row['album_name']; |
| 268 | 265 | } |
@@ -280,8 +277,7 @@ discard block |
||
| 280 | 277 | if ($prune && empty($prune_pattern)) |
| 281 | 278 | { |
| 282 | 279 | trigger_error($user->lang['CLEAN_PRUNE_NO_PATTERN'] . adm_back_link($this->u_action), E_USER_WARNING); |
| 283 | - } |
|
| 284 | - else if ($prune && $prune_pattern) |
|
| 280 | + } else if ($prune && $prune_pattern) |
|
| 285 | 281 | { |
| 286 | 282 | $clean_gallery_confirm = $user->lang('CONFIRM_PRUNE', $core_cleanup->lang_prune_pattern($prune_pattern)) . '<br />' . $clean_gallery_confirm; |
| 287 | 283 | } |
@@ -238,8 +238,7 @@ discard block |
||
| 238 | 238 | $this->data['album_user_id'] = 1; |
| 239 | 239 | $this->data['image_filemissing'] = 0; |
| 240 | 240 | $this->data['album_watermark'] = 0; |
| 241 | - } |
|
| 242 | - else |
|
| 241 | + } else |
|
| 243 | 242 | { |
| 244 | 243 | $sql = 'SELECT * |
| 245 | 244 | FROM ' . $this->table_images . ' i |
@@ -409,8 +408,7 @@ discard block |
||
| 409 | 408 | { |
| 410 | 409 | $response->headers->set('expires', '-1'); |
| 411 | 410 | } |
| 412 | - } |
|
| 413 | - else |
|
| 411 | + } else |
|
| 414 | 412 | { |
| 415 | 413 | $response->headers->set('Content-Disposition', 'inline; ' . $this->tool->header_filename(htmlspecialchars_decode($this->tool->image_name) . '.' . $this->tool->image_type)); |
| 416 | 414 | if ($this->tool->is_ie_greater7($this->user->browser)) |
@@ -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); |
@@ -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 | } |
@@ -296,16 +295,14 @@ discard block |
||
| 296 | 295 | if (!empty($row['user_id'])) |
| 297 | 296 | { |
| 298 | 297 | $album_moderators[$a_id][] = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']); |
| 299 | - } |
|
| 300 | - else |
|
| 298 | + } else |
|
| 301 | 299 | { |
| 302 | 300 | $group_name = (($row['group_type'] == GROUP_SPECIAL) ? $this->language->lang('G_' . $row['group_name']) : $row['group_name']); |
| 303 | 301 | |
| 304 | 302 | if ($this->user->data['user_id'] != ANONYMOUS && !$this->auth->acl_get('u_viewprofile')) |
| 305 | 303 | { |
| 306 | 304 | $album_moderators[$a_id][] = '<span' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . '>' . $group_name . '</span>'; |
| 307 | - } |
|
| 308 | - else |
|
| 305 | + } else |
|
| 309 | 306 | { |
| 310 | 307 | $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>'; |
| 311 | 308 | } |
@@ -349,8 +346,7 @@ discard block |
||
| 349 | 346 | } |
| 350 | 347 | $root_data = array('album_id' => (int) \phpbbgallery\core\block::PUBLIC_ALBUM); |
| 351 | 348 | $sql_where = 'a.album_user_id = ' . (int) \phpbbgallery\core\block::PUBLIC_ALBUM; |
| 352 | - } |
|
| 353 | - else if ($root_data == 'personal') |
|
| 349 | + } else if ($root_data == 'personal') |
|
| 354 | 350 | { |
| 355 | 351 | if ($mark_read == 'albums') |
| 356 | 352 | { |
@@ -368,8 +364,7 @@ discard block |
||
| 368 | 364 | { |
| 369 | 365 | $sql_where .= ' AND u.username_clean NOT ' . $this->db->sql_like_expression(chr($i) . $this->db->any_char); |
| 370 | 366 | } |
| 371 | - } |
|
| 372 | - else if ($first_char) |
|
| 367 | + } else if ($first_char) |
|
| 373 | 368 | { |
| 374 | 369 | $sql_where .= ' AND u.username_clean ' . $this->db->sql_like_expression(substr($first_char, 0, 1) . $this->db->any_char); |
| 375 | 370 | } |
@@ -413,8 +408,7 @@ discard block |
||
| 413 | 408 | 'phpbbgallery_core_search_recent_page',), |
| 414 | 409 | 'params' => array()), 'pagination', 'page', $num_pegas, $limit, $start |
| 415 | 410 | );*/ |
| 416 | - } |
|
| 417 | - else |
|
| 411 | + } else |
|
| 418 | 412 | { |
| 419 | 413 | $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']; |
| 420 | 414 | } |
@@ -502,10 +496,12 @@ discard block |
||
| 502 | 496 | continue; |
| 503 | 497 | } |
| 504 | 498 | |
| 505 | - if (false)//@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id'])) |
|
| 499 | + if (false) { |
|
| 500 | + //@todo !$this->gallery_auth->acl_check('a_list', $album_id, $row['album_user_id'])) |
|
| 506 | 501 | { |
| 507 | 502 | // if the user does not have permissions to list this album, skip everything until next branch |
| 508 | 503 | $right_id = $row['right_id']; |
| 504 | + } |
|
| 509 | 505 | continue; |
| 510 | 506 | } |
| 511 | 507 | |
@@ -530,8 +526,7 @@ discard block |
||
| 530 | 526 | $album_rows[$parent_id]['album_type_last_image'] = $row['album_type']; |
| 531 | 527 | $album_rows[$parent_id]['album_contest_marked'] = $row['contest_marked']; |
| 532 | 528 | $album_rows[$parent_id]['orig_album_last_image_time'] = $row['album_last_image_time']; |
| 533 | - } |
|
| 534 | - else if ($row['album_type']) |
|
| 529 | + } else if ($row['album_type']) |
|
| 535 | 530 | { |
| 536 | 531 | $subalbums[$parent_id][$album_id]['display'] = ($row['display_on_index']) ? true : false; |
| 537 | 532 | $subalbums[$parent_id][$album_id]['name'] = $row['album_name']; |
@@ -573,16 +568,14 @@ discard block |
||
| 573 | 568 | { |
| 574 | 569 | $this->misc->markread('all'); |
| 575 | 570 | $message = $this->language->lang('RETURN_INDEX', '<a href="' . $redirect . '">', '</a>'); |
| 576 | - } |
|
| 577 | - else |
|
| 571 | + } else |
|
| 578 | 572 | { |
| 579 | 573 | $this->misc->markread('albums', $album_ids); |
| 580 | 574 | $message = $this->language->lang('RETURN_ALBUM', '<a href="' . $redirect . '">', '</a>'); |
| 581 | 575 | } |
| 582 | 576 | meta_refresh(3, $redirect); |
| 583 | 577 | trigger_error($this->language->lang('ALBUMS_MARKED') . '<br /><br />' . $message); |
| 584 | - } |
|
| 585 | - else |
|
| 578 | + } else |
|
| 586 | 579 | { |
| 587 | 580 | $message = $this->language->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); |
| 588 | 581 | meta_refresh(3, $redirect); |
@@ -660,8 +653,7 @@ discard block |
||
| 660 | 653 | 'name' => $subalbum_row['name'], |
| 661 | 654 | 'unread' => $subalbum_unread, |
| 662 | 655 | ); |
| 663 | - } |
|
| 664 | - else |
|
| 656 | + } else |
|
| 665 | 657 | { |
| 666 | 658 | unset($subalbums[$album_id][$subalbum_id]); |
| 667 | 659 | } |
@@ -674,8 +666,7 @@ discard block |
||
| 674 | 666 | |
| 675 | 667 | $l_subalbums = (sizeof($subalbums[$album_id]) == 1) ? $this->language->lang('SUBALBUM') : $this->language->lang('SUBALBUMS'); |
| 676 | 668 | $folder_image = ($album_unread) ? 'forum_unread_subforum' : 'forum_read_subforum'; |
| 677 | - } |
|
| 678 | - else |
|
| 669 | + } else |
|
| 679 | 670 | { |
| 680 | 671 | $folder_alt = ($album_unread) ? 'NEW_IMAGES' : 'NO_NEW_IMAGES'; |
| 681 | 672 | $folder_image = ($album_unread) ? 'forum_unread' : 'forum_read'; |
@@ -701,8 +692,7 @@ discard block |
||
| 701 | 692 | $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); |
| 702 | 693 | // 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); |
| 703 | 694 | $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); |
| 704 | - } |
|
| 705 | - else |
|
| 695 | + } else |
|
| 706 | 696 | { |
| 707 | 697 | $lastimage_time = $lastimage_album_type = $lastimage_contest_marked = 0; |
| 708 | 698 | $lastimage_uc_fake_thumbnail = $lastimage_uc_fake_thumbnail_url = $lastimage_uc_thumbnail = $lastimage_uc_name = $lastimage_uc_icon = ''; |