Skip to content

Commit

Permalink
Updated query for removal of old menus
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfuller2 committed Apr 15, 2024
1 parent 0492880 commit 5b3ff24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proclaim.script.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ private function removeBibleStudyVersion(): void
// Clean up Menus
$query = $this->dbo->getQuery(true);
$conditions = array(
$this->dbo->quoteName('link') . ' LIKE %com_biblestudy% '
$this->dbo->quoteName('link') . 'LIKE "%com_biblestudy%"'
);
$query->delete($this->dbo->quoteName('#__menu'));
$query->where($conditions);

$this->dbo->setQuery($query);

try {
Expand All @@ -249,7 +250,7 @@ private function removeBibleStudyVersion(): void
echo "Failed to execute menu removal";
}

// Delete Old stale com_biblestudy extinction.
// Delete Old stale com_biblestudy extension.
$query = $this->dbo->getQuery(true);
$conditions = [
$this->dbo->quoteName('element') . ' = com_biblestudy'
Expand Down

0 comments on commit 5b3ff24

Please sign in to comment.