Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php |
— | — | @@ -150,5 +150,22 @@ |
151 | 151 | |
152 | 152 | return $links; |
153 | 153 | } |
| 154 | + |
| 155 | + /** |
| 156 | + * (non-PHPdoc) |
| 157 | + * @see EPPager::getMultipleItemActions() |
| 158 | + */ |
| 159 | + protected function getMultipleItemActions() { |
| 160 | + $actions = parent::getMultipleItemActions(); |
154 | 161 | |
| 162 | + if ( $this->getUser()->isAllowed( 'ep-course' ) ) { |
| 163 | + $actions[wfMsg( 'ep-pager-delete-selected' )] = array( |
| 164 | + 'class' => 'ep-pager-delete-selected', |
| 165 | + 'data-type' => ApiDeleteEducation::getTypeForClassName( $this->className ) |
| 166 | + ); |
| 167 | + } |
| 168 | + |
| 169 | + return $actions; |
| 170 | + } |
| 171 | + |
155 | 172 | } |
Index: trunk/extensions/EducationProgram/includes/EPCourse.php |
— | — | @@ -327,22 +327,5 @@ |
328 | 328 | htmlspecialchars( $this->getField( 'name' ) ) |
329 | 329 | ); |
330 | 330 | } |
331 | | - |
332 | | - /** |
333 | | - * (non-PHPdoc) |
334 | | - * @see EPPager::getMultipleItemActions() |
335 | | - */ |
336 | | - protected function getMultipleItemActions() { |
337 | | - $actions = parent::getMultipleItemActions(); |
338 | 331 | |
339 | | - if ( $this->getUser()->isAllowed( 'ep-course' ) ) { |
340 | | - $actions[wfMsg( 'ep-pager-delete-selected' )] = array( |
341 | | - 'class' => 'ep-pager-delete-selected', |
342 | | - 'data-type' => ApiDeleteEducation::getTypeForClassName( $this->className ) |
343 | | - ); |
344 | | - } |
345 | | - |
346 | | - return $actions; |
347 | | - } |
348 | | - |
349 | 332 | } |