Fixed broken SQL for people tags view
This commit is contained in:
parent
e2a965c999
commit
688d38b101
|
@ -49,7 +49,6 @@ class PeopletagAction extends Action
|
||||||
$this->showPage();
|
$this->showPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -66,17 +65,18 @@ class PeopletagAction extends Action
|
||||||
|
|
||||||
# XXX: memcached this
|
# XXX: memcached this
|
||||||
|
|
||||||
$profile->query(sprintf('SELECT profile.* ' .
|
$qry = 'SELECT profile.* ' .
|
||||||
'FROM profile JOIN profile_tag ' .
|
'FROM profile JOIN profile_tag ' .
|
||||||
'ON profile.id = profile_tag.tagger ' .
|
'ON profile.id = profile_tag.tagger ' .
|
||||||
'WHERE profile_tag.tagger = profile_tag.tagged ' .
|
'WHERE profile_tag.tagger = profile_tag.tagged ' .
|
||||||
'AND tag = "%s" ' .
|
'AND tag = "%s" ' .
|
||||||
'ORDER BY profile_tag.modified DESC ',
|
'ORDER BY profile_tag.modified DESC';
|
||||||
'LIMIT 0, %s'), $this->tag, $lim);
|
|
||||||
|
$profile->query(sprintf($qry, $this->tag, $lim));
|
||||||
|
|
||||||
$pl = new ProfileList($profile, null, $this);
|
$pl = new ProfileList($profile, null, $this);
|
||||||
$cnt = $pl->show();
|
$cnt = $pl->show();
|
||||||
|
|
||||||
$this->pagination($this->page > 1,
|
$this->pagination($this->page > 1,
|
||||||
$cnt > PROFILES_PER_PAGE,
|
$cnt > PROFILES_PER_PAGE,
|
||||||
$this->page,
|
$this->page,
|
||||||
|
|
Loading…
Reference in New Issue