Index: trunk/extensions/EducationProgram/actions/EPDeleteAction.php |
— | — | @@ -63,8 +63,8 @@ |
64 | 64 | $object = $this->table->get( $this->getTitle()->getText() ); |
65 | 65 | |
66 | 66 | if ( $object === false ) { |
67 | | - // TODO |
68 | | - throw new ErrorPageError( $this->getTitle(), $this->prefixMsg( 'none' ) ); |
| 67 | + $this->getOutput()->addWikiMsg( $this->prefixMsg( 'none' ), $this->getTitle()->getText() ); |
| 68 | + $this->getOutput()->setSubtitle( '' ); |
69 | 69 | } |
70 | 70 | else { |
71 | 71 | $this->displayForm( $object ); |
Index: trunk/extensions/EducationProgram/includes/EPRevisionedObject.php |
— | — | @@ -244,4 +244,12 @@ |
245 | 245 | return null; |
246 | 246 | } |
247 | 247 | |
| 248 | + public function undelete() { |
| 249 | + |
| 250 | + } |
| 251 | + |
| 252 | + public function revert() { |
| 253 | + |
| 254 | + } |
| 255 | + |
248 | 256 | } |
\ No newline at end of file |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -469,6 +469,7 @@ |
470 | 470 | 'deletecourseaction-title' => 'Delete course "$1"', |
471 | 471 | 'deletecourseaction-cancel-button' => 'Cancel', |
472 | 472 | 'deletecourseaction-delete-button' => 'Delete course', |
| 473 | + 'deletecourseaction-none' => 'There is no course titled "$1". Existing courses can be found in [[Special:Courses|the courses list]].', |
473 | 474 | |
474 | 475 | // Institution deletion |
475 | 476 | 'deleteorgaction-text' => "You are about to delete institution $1. This will remove all it's courses and their associated students!", |
— | — | @@ -476,6 +477,7 @@ |
477 | 478 | 'deleteorgaction-title' => 'Delete institution "$1"', |
478 | 479 | 'deleteorgaction-cancel-button' => 'Cancel', |
479 | 480 | 'deleteorgaction-delete-button' => 'Delete institution', |
| 481 | + 'deleteorgaction-none' => 'There is no institution titled "$1". Existing institutions can be found in [[Special:Courses|the institution list]].', |
480 | 482 | |
481 | 483 | // Special:Ambassador |
482 | 484 | 'ep-ambassador-does-not-exist' => 'There is no ambassador with name "$1". See [[Special:Ambassadors|here]] for a list of ambassadors.', |