From: Sam Reed Date: Thu, 2 Sep 2010 20:52:01 +0000 (+0000) Subject: Per r72181, refactor isInCategory into ArticleAssessmentPilot X-Git-Tag: 1.31.0-rc.0~35219 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e12b02702bd688e99259f7af348300ba42ffdbf6;p=lhc%2Fweb%2Fwiklou.git Per r72181, refactor isInCategory into ArticleAssessmentPilot --- diff --git a/includes/Title.php b/includes/Title.php index b991993fce..a512878aba 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3530,24 +3530,6 @@ class Title { return !$this->isExternal() && MWNamespace::isWatchable( $this->getNamespace() ); } - /* - * Returns whether an article is in the specific category - * - * @param $category String: The category name (without Category: Prefix) - * - * @return bool - */ - public function isInCategory( $category ) { - $dbr = wfGetDB( DB_SLAVE ); - return (bool)$dbr->selectRow( 'categorylinks', '*', - array( - 'cl_from' => $this->getArticleId(), - 'cl_to' => $category, - ), - __METHOD__ - ); - } - /** * Get categories to which this Title belongs and return an array of * categories' names.