r112501 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112500‎ | r112501 | r112502 >
Date:18:59, 27 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
rem dead code and fix example
Modified paths:
  • /trunk/extensions/EducationProgram/api/ApiDeleteEducation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/api/ApiDeleteEducation.php
@@ -54,14 +54,6 @@
5555
5656 $everythingOk = true;
5757
58 -// foreach ( $params['ids'] as $id ) {
59 -// // $instance->remove is used instead of Class::delete,
60 -// // so that linked data also gets deleted.
61 -// $c = self::$typeMap[$params['type']];
62 -// $object = new $c( array( 'id' => $id ) );
63 -// $everythingOk = $object->remove() && $everythingOk;
64 -// }
65 -
6658 $class = self::$typeMap[$params['type']];
6759
6860 if ( count( $params['ids'] ) > 0 ) {
@@ -158,7 +150,7 @@
159151 protected function getExamples() {
160152 return array(
161153 'api.php?action=deleteeducation&ids=42&type=course',
162 - 'api.php?action=deleteeducation&ids=4|2&type=student',
 154+ 'api.php?action=deleteeducation&ids=4|2&type=org',
163155 );
164156 }
165157

Status & tagging log