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:
7dbaa0a
)
select less fields from sql.
author
Antoine Musso
<hashar@users.mediawiki.org>
Thu, 10 Jun 2004 16:00:21 +0000
(16:00 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Thu, 10 Jun 2004 16:00:21 +0000
(16:00 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
71bd88f
..
a4766e5
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1180,7
+1180,7
@@
class Title {
$parents = array();
# get the parents categories of this title from the database
- $sql = "SELECT DISTINCT c
l_from,cur_namespace,cur_title,c
ur_id FROM cur,categorylinks
+ $sql = "SELECT DISTINCT cur_id FROM cur,categorylinks
WHERE cl_from='$titlekey' AND cl_to=cur_title AND cur_namespace='$cns'
ORDER BY cl_sortkey" ;
$res = wfQuery ( $sql, DB_READ ) ;