dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8ad1a
)
Replace calls to deprecated Article::doWatch and Article::doUnwatch
author
Platonides
<platonides@gmail.com>
Sun, 3 Jun 2012 13:41:57 +0000
(15:41 +0200)
committer
Platonides
<platonides@gmail.com>
Sun, 3 Jun 2012 13:41:57 +0000
(15:41 +0200)
Change-Id: I7e87b24144cbff01fdf8b40c5e7da783c0c57f24
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
ded8c49
..
fdf0820
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1372,9
+1372,9
@@
class Article extends Page {
$this->doDelete( $reason, $suppress );
if ( $request->getCheck( 'wpWatch' ) && $user->isLoggedIn() ) {
-
$this->doWatch(
);
+
WatchAction::doWatch( $title, $user
);
} elseif ( $title->userIsWatching() ) {
-
$this->doUnwatch(
);
+
WatchAction::doUnwatch( $title, $user
);
}
return;