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
Merge "Use one call to .attr instead of two and linebreak consistency"
[lhc/web/wiklou.git]
/
includes
/
Article.php
diff --git
a/includes/Article.php
b/includes/Article.php
index
ba922a4
..
732b1c2
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1546,13
+1546,7
@@
class Article implements Page {
$this->doDelete( $reason, $suppress );
$this->doDelete( $reason, $suppress );
- if ( $user->isLoggedIn() && $request->getCheck( 'wpWatch' ) != $user->isWatched( $title ) ) {
- if ( $request->getCheck( 'wpWatch' ) ) {
- WatchAction::doWatch( $title, $user );
- } else {
- WatchAction::doUnwatch( $title, $user );
- }
- }
+ WatchAction::doWatchOrUnwatch( $request->getCheck( 'wpWatch' ), $title, $user );
return;
}
return;
}