diff --git a/libraries/joomla/table/language.php b/libraries/joomla/table/language.php index 8b7e7f9095c37..3f0f702649b8d 100644 --- a/libraries/joomla/table/language.php +++ b/libraries/joomla/table/language.php @@ -59,7 +59,7 @@ public function check() public function store($updateNulls = false) { // Verify that the sef field is unique - $table = JTable::getInstance('Language', 'JTable'); + $table = JTable::getInstance('Language', 'JTable', array('dbo', $this->getDbo())); if ($table->load(array('sef' => $this->sef)) && ($table->lang_id != $this->lang_id || $this->lang_id == 0)) { diff --git a/libraries/joomla/table/nested.php b/libraries/joomla/table/nested.php index 1422b83a649dd..4d6666ccc86d5 100644 --- a/libraries/joomla/table/nested.php +++ b/libraries/joomla/table/nested.php @@ -538,7 +538,7 @@ public function delete($pk = null, $children = true) if ($this->_trackAssets) { $name = $this->_getAssetName(); - $asset = JTable::getInstance('Asset'); + $asset = JTable::getInstance('Asset', 'JTable', array('dbo', $this->getDbo())); // Lock the table for writing. if (!$asset->_lock()) diff --git a/libraries/legacy/table/content.php b/libraries/legacy/table/content.php index 0cf5adfb1fe95..2df0e54646e54 100644 --- a/libraries/legacy/table/content.php +++ b/libraries/legacy/table/content.php @@ -272,7 +272,7 @@ public function store($updateNulls = false) } // Verify that the alias is unique - $table = JTable::getInstance('Content', 'JTable'); + $table = JTable::getInstance('Content', 'JTable', array('dbo', $this->getDbo())); if ($table->load(array('alias' => $this->alias, 'catid' => $this->catid)) && ($table->id != $this->id || $this->id == 0)) { diff --git a/libraries/legacy/table/menu/type.php b/libraries/legacy/table/menu/type.php index 0ab80a1109e28..bb72cf4db0fc9 100644 --- a/libraries/legacy/table/menu/type.php +++ b/libraries/legacy/table/menu/type.php @@ -93,7 +93,7 @@ public function store($updateNulls = false) $userId = JFactory::getUser()->id; // Get the old value of the table - $table = JTable::getInstance('Menutype', 'JTable'); + $table = JTable::getInstance('Menutype', 'JTable', array('dbo', $this->getDbo())); $table->load($this->id); // Verify that no items are checked out @@ -179,7 +179,7 @@ public function delete($pk = null) $userId = JFactory::getUser()->id; // Get the old value of the table - $table = JTable::getInstance('Menutype', 'JTable'); + $table = JTable::getInstance('Menutype', 'JTable', array('dbo', $this->getDbo())); $table->load($pk); // Verify that no items are checked out