Skip to content
Snippets Groups Projects
Commit 2739e873 authored by mooffie's avatar mooffie
Browse files

#1022800: D7: Table {comments} renamed to {comment}.

parent 6b83ac6a
No related branches found
No related tags found
No related merge requests found
......@@ -1456,7 +1456,7 @@ class flag_comment extends flag_flag {
// Ensure node types are granted access. This avoids a
// node_load() on every type, usually done by applies_to_content_id().
$query = db_select('comments', 'c');
$query = db_select('comment', 'c');
$query->innerJoin('node', 'n', 'c.nid = n.nid');
$result = $query
->fields('c', array('cid'))
......@@ -1532,7 +1532,7 @@ class flag_comment extends flag_flag {
function get_views_info() {
return array(
'views table' => 'comments',
'views table' => 'comment',
'join field' => 'cid',
'title field' => 'subject',
'title' => t('Comment flag'),
......
......@@ -964,7 +964,7 @@ function flag_flag_access_multiple($flag, $content_ids, $account) {
if ($flag->content_type == 'comment') {
// Restrict access by comment ownership.
$query = db_select('comments', 'c');
$query = db_select('comment', 'c');
$query->leftJoin('node', 'n', 'c.nid = n.nid');
$result = $query
->fields('c', array('cid', 'nid'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment