dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display the file sha1 value in the file info page
[lhc/web/wiklou.git]
/
includes
/
actions
/
UnwatchAction.php
diff --git
a/includes/actions/UnwatchAction.php
b/includes/actions/UnwatchAction.php
index
7f043e4
..
aa17b89
100644
(file)
--- a/
includes/actions/UnwatchAction.php
+++ b/
includes/actions/UnwatchAction.php
@@
-31,22
+31,27
@@
class UnwatchAction extends WatchAction {
return 'unwatch';
}
return 'unwatch';
}
- protected function getDescription() {
- return $this->msg( 'removewatch' )->escaped();
- }
-
public function onSubmit( $data ) {
self::doUnwatch( $this->getTitle(), $this->getUser() );
return true;
}
public function onSubmit( $data ) {
self::doUnwatch( $this->getTitle(), $this->getUser() );
return true;
}
- protected function alterForm( HTMLForm $form ) {
- $form->setSubmitTextMsg( 'confirm-unwatch-button' );
+ protected function getFormFields() {
+ return [
+ 'intro' => [
+ 'type' => 'info',
+ 'vertical-label' => true,
+ 'raw' => true,
+ 'default' => $this->msg( 'confirm-unwatch-top' )->parse()
+ ]
+ ];
}
}
- protected function preText() {
- return $this->msg( 'confirm-unwatch-top' )->parse();
+ protected function alterForm( HTMLForm $form ) {
+ parent::alterForm( $form );
+ $form->setWrapperLegendMsg( 'removewatch' );
+ $form->setSubmitTextMsg( 'confirm-unwatch-button' );
}
public function onSuccess() {
}
public function onSuccess() {