Skip to content

Commit

Permalink
Revert "Use the internal database instance in the menu table"
Browse files Browse the repository at this point in the history
This reverts commit 5a37008.
  • Loading branch information
laoneo committed Apr 22, 2022
1 parent 513166a commit 520e752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions administrator/components/com_menus/src/Table/MenuTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Table\Menu;
use Joomla\Database\ParameterType;

/**
* Menu table
*
* @since 1.6
*/
class MenuTable extends Menu
class MenuTable extends \Joomla\CMS\Table\Menu
{
/**
* Method to delete a node and, optionally, its child nodes from the table.
Expand All @@ -39,7 +39,7 @@ public function delete($pk = null, $children = false)
if ($return)
{
// Delete key from the #__modules_menu table
$db = $this->getDbo();
$db = Factory::getDbo();
$query = $db->getQuery(true)
->delete($db->quoteName('#__modules_menu'))
->where($db->quoteName('menuid') . ' = :pk')
Expand Down

0 comments on commit 520e752

Please sign in to comment.