Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -195,6 +195,7 @@ |
196 | 196 | $wgActions['epaddreviewer'] = 'EPAddReviewerAction'; |
197 | 197 | $wgActions['epundo'] = 'EPUndoAction'; |
198 | 198 | $wgActions['eprestore'] = 'EPRestoreAction'; |
| 199 | +$wgActions['epundelete'] = 'EPUndeleteAction'; |
199 | 200 | |
200 | 201 | // Logging |
201 | 202 | $wgLogTypes[] = 'institution'; |
Index: trunk/extensions/EducationProgram/actions/EPHistoryAction.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Abstract action for viewing the history of EPPageObject items. |
| 5 | + * Action for viewing the history of EPPageObject items. |
6 | 6 | * |
7 | 7 | * @since 0.1 |
8 | 8 | * |
Index: trunk/extensions/EducationProgram/actions/EPDeleteAction.php |
— | — | @@ -81,6 +81,8 @@ |
82 | 82 | * |
83 | 83 | * @since 0.1 |
84 | 84 | * |
| 85 | + * @param EPPageObject $object |
| 86 | + * |
85 | 87 | * @return boolean Success indicator |
86 | 88 | */ |
87 | 89 | protected function doDelete( EPPageObject $object ) { |
Index: trunk/extensions/EducationProgram/actions/EPUndoAction.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Abstract action for undoing a change to an EPPageObject. |
| 5 | + * Action for undoing a change to an EPPageObject. |
6 | 6 | * |
7 | 7 | * @since 0.1 |
8 | 8 | * |
— | — | @@ -79,6 +79,8 @@ |
80 | 80 | * |
81 | 81 | * @since 0.1 |
82 | 82 | * |
| 83 | + * @param EPPageObject $object |
| 84 | + * |
83 | 85 | * @return boolean Success indicator |
84 | 86 | */ |
85 | 87 | protected function doUndo( EPPageObject $object ) { |
— | — | @@ -93,7 +95,7 @@ |
94 | 96 | } |
95 | 97 | |
96 | 98 | /** |
97 | | - * Display the restoration form for the provided EPPageObject. |
| 99 | + * Display the undo revision form for the provided EPPageObject. |
98 | 100 | * |
99 | 101 | * @since 0.1 |
100 | 102 | * |
— | — | @@ -129,7 +131,7 @@ |
130 | 132 | $out->addHTML( '<br />' ); |
131 | 133 | |
132 | 134 | $out->addHTML( Html::input( |
133 | | - 'restore', |
| 135 | + 'undo', |
134 | 136 | wfMsg( $this->prefixMsg( 'undo-button' ) ), |
135 | 137 | 'submit', |
136 | 138 | array( |