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
ApiQueryWatchlist: Don't reinvent Title::newFromLinkTarget()
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryWatchlist.php
diff --git
a/includes/api/ApiQueryWatchlist.php
b/includes/api/ApiQueryWatchlist.php
index
2ab8524
..
3182475
100644
(file)
--- a/
includes/api/ApiQueryWatchlist.php
+++ b/
includes/api/ApiQueryWatchlist.php
@@
-260,10
+260,7
@@
class ApiQueryWatchlist extends ApiQueryGeneratorBase {
private function extractOutputData( WatchedItem $watchedItem, array $recentChangeInfo ) {
/* Determine the title of the page that has been changed. */
private function extractOutputData( WatchedItem $watchedItem, array $recentChangeInfo ) {
/* Determine the title of the page that has been changed. */
- $title = Title::makeTitle(
- $watchedItem->getLinkTarget()->getNamespace(),
- $watchedItem->getLinkTarget()->getDBkey()
- );
+ $title = Title::newFromLinkTarget( $watchedItem->getLinkTarget() );
$user = $this->getUser();
/* Our output data. */
$user = $this->getUser();
/* Our output data. */