Changeset 7116 for branches/0.9/bb-includes/template-functions.php
- Timestamp:
- 08/10/2020 07:51:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/template-functions.php
r7115 r7116 1009 1009 $user_id = bb_get_current_user_info( 'id' ); 1010 1010 if ( isset($topic->bozos[$user_id]) && 'all' != @$_GET['view'] ) 1011 add_filter('get_topic_deleted_posts', create_function('$a', "\$a -= {$topic->bozos[$user_id]}; return \$a;"));1011 add_filter('get_topic_deleted_posts', function ( $a ) use ( $topic, $user_id ) { $a -= $topic->bozos[$user_id]; return $a; } ); 1012 1012 if ( $deleted = get_topic_deleted_posts( $id ) ) { 1013 1013 $extra = sprintf(__('+%d more'), $deleted);
Note: See TracChangeset
for help on using the changeset viewer.