Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/query/PhrictionDocumentQuery.php
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | if ($this->needContent) { | ||||
$document->attachContent($contents[$content_id]); | $document->attachContent($contents[$content_id]); | ||||
} | } | ||||
} | } | ||||
return $documents; | return $documents; | ||||
} | } | ||||
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { | protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { | ||||
$joins = array(); | $joins = parent::buildJoinClauseParts($conn); | ||||
if ($this->getOrderVector()->containsKey('updated')) { | if ($this->getOrderVector()->containsKey('updated')) { | ||||
$content_dao = new PhrictionContent(); | $content_dao = new PhrictionContent(); | ||||
$joins[] = qsprintf( | $joins[] = qsprintf( | ||||
$conn, | $conn, | ||||
'JOIN %T c ON d.contentID = c.id', | 'JOIN %T c ON d.contentID = c.id', | ||||
$content_dao->getTableName()); | $content_dao->getTableName()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |