From 8f4ce0410783912c56dbdd7e129c3f9262ff76ab Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 26 Jan 2016 20:04:28 +0100 Subject: [PATCH] LinkBatch::addObj can also work with TitleValue objs Change-Id: I035d38a5eb8299fcce9cc0efa3952e391b325722 --- includes/cache/LinkBatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index d98888f0b0..d6c610a92d 100644 --- a/includes/cache/LinkBatch.php +++ b/includes/cache/LinkBatch.php @@ -56,13 +56,13 @@ class LinkBatch { } /** - * @param Title $title + * @param Title|TitleValue $title */ public function addObj( $title ) { if ( is_object( $title ) ) { $this->add( $title->getNamespace(), $title->getDBkey() ); } else { - wfDebug( "Warning: LinkBatch::addObj got invalid title object\n" ); + wfDebug( "Warning: LinkBatch::addObj got invalid Title or TitleValue object\n" ); } } -- 2.20.1