Per r72181, refactor isInCategory into ArticleAssessmentPilot
authorSam Reed <reedy@users.mediawiki.org>
Thu, 2 Sep 2010 20:52:01 +0000 (20:52 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 2 Sep 2010 20:52:01 +0000 (20:52 +0000)
includes/Title.php

index b991993..a512878 100644 (file)
@@ -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.