Index: trunk/extensions/EducationProgram/specials/SpecialInstitution.php |
— | — | @@ -100,7 +100,6 @@ |
101 | 101 | |
102 | 102 | $stats['courses'] = $this->getLanguage()->formatNum( $org->getField( 'courses' ) ); |
103 | 103 | $stats['terms'] = $this->getLanguage()->formatNum( $org->getField( 'terms' ) ); |
104 | | - $stats['ambassadors'] = $this->getLanguage()->formatNum( $org->getField( 'mentors' ) ); |
105 | 104 | $stats['students'] = $this->getLanguage()->formatNum( $org->getField( 'students' ) ); |
106 | 105 | |
107 | 106 | foreach ( $stats as &$stat ) { |
Index: trunk/extensions/EducationProgram/includes/EPOrg.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | */ |
87 | 87 | public function loadSummaryFields( $summaryFields = null ) { |
88 | 88 | if ( is_null( $summaryFields ) ) { |
89 | | - $summaryFields = array( 'courses', 'terms', 'mentors', 'students', 'active' ); |
| 89 | + $summaryFields = array( 'courses', 'terms', 'students', 'active' ); |
90 | 90 | } |
91 | 91 | else { |
92 | 92 | $summaryFields = (array)$summaryFields; |
— | — | @@ -103,16 +103,6 @@ |
104 | 104 | |
105 | 105 | $dbr = wfGetDB( DB_SLAVE ); |
106 | 106 | |
107 | | - if ( in_array( 'mentors', $summaryFields ) ) { |
108 | | - $fields['mentors'] = $dbr->select( |
109 | | - 'ep_mentors_per_org', |
110 | | - 'COUNT(*) AS rowcount', |
111 | | - array( 'mpo_org_id' => $this->getId() ) |
112 | | - ); |
113 | | - |
114 | | - $fields['mentors'] = $fields['mentors']->rowcount; |
115 | | - } |
116 | | - |
117 | 107 | if ( in_array( 'students', $summaryFields ) ) { |
118 | 108 | $termIds = EPTerm::selectFields( 'id', array( 'org_id' => $this->getId() ) ); |
119 | 109 | |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -176,7 +176,6 @@ |
177 | 177 | 'eporgpager-header-country' => 'Country', |
178 | 178 | 'eporgpager-filter-country' => 'Country', |
179 | 179 | 'eporgpager-header-courses' => 'Courses', |
180 | | - 'eporgpager-header-mentors' => 'Ambassadors', |
181 | 180 | 'eporgpager-header-students' => 'Students', |
182 | 181 | 'eporgpager-header-terms' => 'Terms', |
183 | 182 | 'eporgpager-header-active' => 'Active', |
— | — | @@ -270,7 +269,6 @@ |
271 | 270 | 'specialinstitution-summary-courses' => 'Course count', |
272 | 271 | 'specialinstitution-summary-terms' => 'Term count', |
273 | 272 | 'specialinstitution-summary-students' => 'Student count', |
274 | | - 'specialinstitution-summary-ambassadors' => 'Ambassador count', |
275 | 273 | 'ep-institution-nav-edit' => 'Edit this institution', |
276 | 274 | 'ep-institution-add-course' => 'Add a course', |
277 | 275 | 'ep-institution-inactive' => 'Inactive', |