Changeset 5021 for trunk/includes/admin/topics.php
- Timestamp:
- 07/10/2013 03:29:03 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/admin/topics.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/admin/topics.php
r4995 r5021 502 502 503 503 $is_sticky = bbp_is_topic_sticky( $topic_id ); 504 $is_super = ( empty( $is_sticky ) && !empty( $_GET['super'] ) && 1 === (int)$_GET['super'] ) ? true : false;505 $message = true === $is_sticky ? 'unsticked' : 'sticked';506 $message = true === $is_super ? 'super_sticked' : $message;507 $success = true === $is_sticky ? bbp_unstick_topic( $topic_id ) : bbp_stick_topic( $topic_id, $is_super );504 $is_super = false === $is_sticky && !empty( $_GET['super'] ) && ( "1" === $_GET['super'] ) ? true : false; 505 $message = true === $is_sticky ? 'unsticked' : 'sticked'; 506 $message = true === $is_super ? 'super_sticked' : $message; 507 $success = true === $is_sticky ? bbp_unstick_topic( $topic_id ) : bbp_stick_topic( $topic_id, $is_super ); 508 508 509 509 break;
Note: See TracChangeset
for help on using the changeset viewer.