From: addshore Date: Tue, 26 Jan 2016 19:04:28 +0000 (+0100) Subject: LinkBatch::addObj can also work with TitleValue objs X-Git-Tag: 1.31.0-rc.0~8201^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=8f4ce0410783912c56dbdd7e129c3f9262ff76ab;p=lhc%2Fweb%2Fwiklou.git LinkBatch::addObj can also work with TitleValue objs Change-Id: I035d38a5eb8299fcce9cc0efa3952e391b325722 --- 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" ); } }