Changeset 2109 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/stats-overview.php
- Timestamp:
- 11/22/2015 08:01:41 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/stats-overview.php
r2108 r2109 5 5 * Provides the route for translate.wordpress.org/stats. 6 6 */ 7 class GP_WPorg_Route_Stats extends GP_Route {7 class WPorg_GP_Route_Stats extends GP_Route { 8 8 9 9 public function get_stats_overview() { 10 global $ gpdb;10 global $wpdb; 11 11 12 12 $projects = array( … … 41 41 (100 * stats.current/stats.all) as percent_complete, 42 42 stats.waiting+stats.fuzzy as waiting_strings 43 FROM {$ gpdb->prefix}project_translation_status stats44 LEFT JOIN {$ gpdb->prefix}projects p ON stats.project_id = p.id43 FROM {$wpdb->prefix}project_translation_status stats 44 LEFT JOIN {$wpdb->prefix}projects p ON stats.project_id = p.id 45 45 WHERE 46 46 p.path IN ( $all_project_paths_sql ) 47 47 AND p.active = 1"; 48 48 49 $rows = $ gpdb->get_results( $sql );49 $rows = $wpdb->get_results( $sql ); 50 50 51 51 // Split out into $[Locale][Project] = % … … 80 80 locale, locale_slug, 81 81 SUM( stats.waiting ) + SUM( stats.fuzzy ) as waiting_strings 82 FROM {$ gpdb->prefix}project_translation_status stats83 LEFT JOIN {$ gpdb->prefix}projects p ON stats.project_id = p.id82 FROM {$wpdb->prefix}project_translation_status stats 83 LEFT JOIN {$wpdb->prefix}projects p ON stats.project_id = p.id 84 84 WHERE 85 85 p.parent_project_id IN ( $parent_project_ids ) … … 87 87 GROUP BY locale, locale_slug"; 88 88 89 $rows = $ gpdb->get_results( $sql );89 $rows = $wpdb->get_results( $sql ); 90 90 foreach ( $rows as $set ) { 91 91 $locale_key = $set->locale;
Note: See TracChangeset
for help on using the changeset viewer.