Changeset 3002 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-stats.php
- Timestamp:
- 04/25/2016 03:38:34 PM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc
- Files:
-
- 1 added
- 1 copied
- 1 moved
-
. (added)
-
routes (moved) (moved from sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes)
-
routes/class-stats.php (copied) (copied from sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/stats-overview.php) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-stats.php
r2999 r3002 1 1 <?php 2 3 namespace WordPressdotorg\GlotPress\Routes\Routes; 4 5 use GP; 6 use GP_Route; 7 2 8 /** 3 9 * Stats Route Class. … … 5 11 * Provides the route for translate.wordpress.org/stats. 6 12 */ 7 class WPorg_GP_Route_Stats extends GP_Route {13 class Stats extends GP_Route { 8 14 9 15 public function get_stats_overview() { … … 22 28 23 29 // I'm sure there's somewhere to fetch these from statically defined 24 $wp_project = GP::$project->by_path( 'wp');30 $wp_project = GP::$project->by_path( 'wp' ); 25 31 foreach ( GP::$project->find_many( array( 'parent_project_id' => $wp_project->id, 'active' => 1 ), 'name ASC' ) as $wp_sub_project ) { 26 32 // Prefix the WordPress projects... … … 75 81 $parent_project_ids = implode(',', array( 76 82 GP::$project->by_path( 'wp-plugins' )->id, 77 GP::$project->by_path( 'wp-themes' )->id 83 GP::$project->by_path( 'wp-themes' )->id, 78 84 ) ); 79 85 $sql = "SELECT
Note: See TracChangeset
for help on using the changeset viewer.