Differential D20212 Diff 48261 src/applications/differential/controller/DifferentialInlineCommentEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialInlineCommentEditController.php
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | foreach ($ids as $id) { | ||||
$conn_w, | $conn_w, | ||||
'(%s, %d)', | '(%s, %d)', | ||||
$viewer->getPHID(), | $viewer->getPHID(), | ||||
$id); | $id); | ||||
} | } | ||||
queryfx( | queryfx( | ||||
$conn_w, | $conn_w, | ||||
'INSERT IGNORE INTO %T (userPHID, commentID) VALUES %Q', | 'INSERT IGNORE INTO %T (userPHID, commentID) VALUES %LQ', | ||||
$table->getTableName(), | $table->getTableName(), | ||||
implode(', ', $sql)); | $sql); | ||||
} | } | ||||
protected function showComments(array $ids) { | protected function showComments(array $ids) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$table = new DifferentialHiddenComment(); | $table = new DifferentialHiddenComment(); | ||||
$conn_w = $table->establishConnection('w'); | $conn_w = $table->establishConnection('w'); | ||||
queryfx( | queryfx( | ||||
Show All 18 Lines |