From: addshore Date: Wed, 3 Feb 2016 15:17:38 +0000 (+0100) Subject: Use LinkTarget in LinkBatch::addObj X-Git-Tag: 1.31.0-rc.0~7996^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=cc425ece7bc90ed129eb6519321f095b92c36f6b;p=lhc%2Fweb%2Fwiklou.git Use LinkTarget in LinkBatch::addObj Change-Id: I132f254536a7516e878e20ad49d2f415796c4490 --- diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index d6c610a92d..8f334cc435 100644 --- a/includes/cache/LinkBatch.php +++ b/includes/cache/LinkBatch.php @@ -56,13 +56,13 @@ class LinkBatch { } /** - * @param Title|TitleValue $title + * @param LinkTarget $linkTarget */ - public function addObj( $title ) { - if ( is_object( $title ) ) { - $this->add( $title->getNamespace(), $title->getDBkey() ); + public function addObj( $linkTarget ) { + if ( is_object( $linkTarget ) ) { + $this->add( $linkTarget->getNamespace(), $linkTarget->getDBkey() ); } else { - wfDebug( "Warning: LinkBatch::addObj got invalid Title or TitleValue object\n" ); + wfDebug( "Warning: LinkBatch::addObj got invalid LinkTarget object\n" ); } }