@@ -685,15 +685,15 @@ public function assign_block($image_block_name, $image_data, $display_option = 0
685685
686686 'S_IMAGE_REPORTED ' => $ image_data ['image_reported ' ],
687687 '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']) : '',
688- 'S_STATUS_APPROVED ' => ($ image_data ['image_status ' ] == \phpbbgallery \core \block::STATUS_APPROVED ) ? true : false ,
689- 'S_STATUS_UNAPPROVED ' => ($ image_data ['image_status ' ] == \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? true : false ,
690- 'S_STATUS_UNAPPROVED_ACTION ' => ($ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ image_data ['album_user_id ' ]) && $ image_data ['image_status ' ] == \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? $ this ->helper ->route ('phpbbgallery_core_moderate_image_approve ' , array ('image_id ' => (int ) $ image_data ['image_id ' ])) : '' ,
691- 'S_STATUS_UNAPPROVED_PERMISSIONS ' => ($ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ image_data ['album_user_id ' ]) && $ image_data ['image_status ' ] == \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? true : false ,
692- 'S_STATUS_LOCKED ' => ($ image_data ['image_status ' ] == \phpbbgallery \core \block::STATUS_LOCKED ),
688+ 'S_STATUS_APPROVED ' => ($ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_APPROVED ) ? true : false ,
689+ 'S_STATUS_UNAPPROVED ' => ($ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? true : false ,
690+ 'S_STATUS_UNAPPROVED_ACTION ' => ($ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ image_data ['album_user_id ' ]) && $ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? $ this ->helper ->route ('phpbbgallery_core_moderate_image_approve ' , array ('image_id ' => (int ) $ image_data ['image_id ' ])) : '' ,
691+ 'S_STATUS_UNAPPROVED_PERMISSIONS ' => ($ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ image_data ['album_user_id ' ]) && $ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? true : false ,
692+ 'S_STATUS_LOCKED ' => ($ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_LOCKED ) ? true : false ,
693693
694694 'U_REPORT ' => ($ this ->gallery_auth ->acl_check ('m_report ' , $ image_data ['image_album_id ' ], $ image_data ['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'])*/ : '' ,
695695 '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']) : '',
696- '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 ' )),
696+ 'L_STATUS ' => ($ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_UNAPPROVED ) ? $ this ->language ->lang ('APPROVE_IMAGE ' ) : (($ image_data ['image_status ' ] == ( int ) \phpbbgallery \core \block::STATUS_APPROVED ) ? $ this ->language ->lang ('CHANGE_IMAGE_STATUS ' ) : $ this ->language ->lang ('UNLOCK_IMAGE ' )),
697697 ));
698698 }
699699}
0 commit comments