Skip to content

Commit

Permalink
fix #119 #124
Browse files Browse the repository at this point in the history
  • Loading branch information
exstreme committed Jan 15, 2023
1 parent e0c46f6 commit 6ea5072
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions component/administrator/tables/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,26 +197,6 @@ public function store($updateNulls = false)
$this->path = '0';
}

// Update language in objects table
$query = $db->getQuery(true)
->update($db->quoteName('#__jcomments_objects'))
->set($db->quoteName('lang') . ' = ' . $db->quote($this->lang))
->where($db->quoteName('object_id') . ' = ' . (int) $this->object_id)
->where($db->quoteName('object_group') . ' = ' . $db->quote($this->object_group));

$db->setQuery($query);
$db->execute();

// Update language in subscriptions table
$query = $db->getQuery(true)
->update($db->quoteName('#__jcomments_subscriptions'))
->set($db->quoteName('lang') . ' = ' . $db->quote($this->lang))
->where($db->quoteName('object_id') . ' = ' . (int) $this->object_id)
->where($db->quoteName('object_group') . ' = ' . $db->quote($this->object_group));

$db->setQuery($query);
$db->execute();

if (isset($this->datetime))
{
unset($this->datetime);
Expand Down

0 comments on commit 6ea5072

Please sign in to comment.