Ticket #1370: fix-dashboard-right-now.diff
| File fix-dashboard-right-now.diff, 3.2 KB (added by , 16 years ago) |
|---|
-
bb-admin/index.php
3 3 require_once( BB_PATH . BB_INC . 'functions.bb-statistics.php' ); 4 4 5 5 $rn_forums = get_total_forums(); 6 $rn_forums = sprintf(__ngettext('<span>% d</span> forum', '<span>%d</span> forums', $rn_forums), number_format( $rn_forums ) );6 $rn_forums = sprintf(__ngettext('<span>%s</span> forum', '<span>%s</span> forums', $rn_forums), number_format( $rn_forums ) ); 7 7 8 8 $rn_topics = get_total_topics(); 9 $rn_topics = sprintf(__ngettext('<span>% d</span> topic', '<span>%d</span> topics', $rn_topics), number_format( $rn_topics ) );9 $rn_topics = sprintf(__ngettext('<span>%s</span> topic', '<span>%s</span> topics', $rn_topics), number_format( $rn_topics ) ); 10 10 11 11 $rn_posts = get_total_posts(); 12 $rn_posts = sprintf(__ngettext('<span>% d</span> post', '<span>%d</span> posts', $rn_posts), number_format( $rn_posts ) );12 $rn_posts = sprintf(__ngettext('<span>%s</span> post', '<span>%s</span> posts', $rn_posts), number_format( $rn_posts ) ); 13 13 14 14 $rn_users = bb_get_total_users(); 15 $rn_users = sprintf(__ngettext('<span>% d</span> user', '<span>%d</span> users', $rn_users), number_format( $rn_users ) );15 $rn_users = sprintf(__ngettext('<span>%s</span> user', '<span>%s</span> users', $rn_users), number_format( $rn_users ) ); 16 16 17 17 $rn_topic_tags = bb_get_total_topic_tags(); 18 $rn_topic_tags = sprintf(__ngettext('<span>% d</span> tag', '<span>%d</span> tags', $rn_topic_tags), number_format( $rn_topic_tags ) );18 $rn_topic_tags = sprintf(__ngettext('<span>%s</span> tag', '<span>%s</span> tags', $rn_topic_tags), number_format( $rn_topic_tags ) ); 19 19 20 20 $rn_topics_average = get_topics_per_day(); 21 $rn_topics_average = sprintf(__ngettext('<span>% d</span> topic', '<span>%d</span> topics', $rn_topics_average), number_format( $rn_topics_average ) );21 $rn_topics_average = sprintf(__ngettext('<span>%s</span> topic', '<span>%s</span> topics', $rn_topics_average), number_format( $rn_topics_average ) ); 22 22 23 23 $rn_posts_average = get_posts_per_day(); 24 $rn_posts_average = sprintf(__ngettext('<span>% d</span> post', '<span>%d</span> posts', $rn_posts_average), number_format( $rn_posts_average ) );24 $rn_posts_average = sprintf(__ngettext('<span>%s</span> post', '<span>%s</span> posts', $rn_posts_average), number_format( $rn_posts_average ) ); 25 25 26 26 $rn_users_average = get_registrations_per_day(); 27 $rn_users_average = sprintf(__ngettext('<span>% d</span> user', '<span>%d</span> users', $rn_users_average), number_format( $rn_users_average ) );27 $rn_users_average = sprintf(__ngettext('<span>%s</span> user', '<span>%s</span> users', $rn_users_average), number_format( $rn_users_average ) ); 28 28 29 29 $rn_topic_tags_average = bb_get_topic_tags_per_day(); 30 $rn_topic_tags_average = sprintf(__ngettext('<span>% d</span> tag', '<span>%d</span> tags', $rn_topic_tags_average), number_format( $rn_topic_tags_average ) );30 $rn_topic_tags_average = sprintf(__ngettext('<span>%s</span> tag', '<span>%s</span> tags', $rn_topic_tags_average), number_format( $rn_topic_tags_average ) ); 31 31 32 32 $rn = apply_filters( 'bb_admin_right_now', array( 33 33 'forums' => array( $rn_forums, '-' ),
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)