dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08f83e
)
Followup r72181, condense code, use selectRow()
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 2 Sep 2010 16:03:59 +0000
(16:03 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 2 Sep 2010 16:03:59 +0000
(16:03 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
e3e0eb7
..
d741726
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-3539,20
+3539,13
@@
class Title {
*/
public function isInCategory( $category ) {
$dbr = wfGetDB( DB_SLAVE );
- $res = $dbr->select(
- 'categorylinks',
- '*',
+ return $dbr->selectRow( 'categorylinks', '*',
array(
'cl_from' => $this->getArticleId(),
'cl_to' => $category,
),
- __METHOD__,
- array(
- 'LIMIT' => 1
- )
+ __METHOD__
);
-
- return ( $dbr->numRows( $res ) > 0 );
}
/**