r108930 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108929‎ | r108930 | r108931 >
Date:17:58, 14 January 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
move method to correct class
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPCourse.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPCoursePager.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php
@@ -150,5 +150,22 @@
151151
152152 return $links;
153153 }
 154+
 155+ /**
 156+ * (non-PHPdoc)
 157+ * @see EPPager::getMultipleItemActions()
 158+ */
 159+ protected function getMultipleItemActions() {
 160+ $actions = parent::getMultipleItemActions();
154161
 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+
155172 }
Index: trunk/extensions/EducationProgram/includes/EPCourse.php
@@ -327,22 +327,5 @@
328328 htmlspecialchars( $this->getField( 'name' ) )
329329 );
330330 }
331 -
332 - /**
333 - * (non-PHPdoc)
334 - * @see EPPager::getMultipleItemActions()
335 - */
336 - protected function getMultipleItemActions() {
337 - $actions = parent::getMultipleItemActions();
338331
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 -
349332 }

Status & tagging log