public function deletePluginEntry($folder, $element=null)
	{
		if ($this->baseDb->tableExists('#__plugins'))
		{
			// Delete plugin(s) entry
			$query = "DELETE FROM `#__plugins` WHERE `folder` = " . $this->baseDb->quote($folder) . ((!is_null($element)) ? " AND `element` = '{$element}'" : "");
			$this->baseDb->setQuery($query);
			$this->baseDb->query();

			$this->log(sprintf('Removed plugin entry for "%s"', 'plg_' . $folder . ($element ? '_' . $element : '')));

			return true;
		}
		elseif ($this->baseDb->tableExists('#__extensions'))
		{
			// Delete plugin(s) entry
			$query = "DELETE FROM `#__extensions` WHERE `folder` = " . $this->baseDb->quote($folder) . ((!is_null($element)) ? " AND `element` = '{$element}'" : "");
			$this->baseDb->setQuery($query);
			$this->baseDb->query();

			$this->log(sprintf('Removed extension entry for plugin "%s"', 'plg_' . $folder . ($element ? '_' . $element : '')));

			return true;
		}

		return false;
	}
public function deletePluginEntry($folder, $element=null)
	{
		if ($this->baseDb->tableExists('#__plugins'))
		{
			// Delete plugin(s) entry
			$query = "DELETE FROM `#__plugins` WHERE `folder` = " . $this->baseDb->quote($folder) . ((!is_null($element)) ? " AND `element` = '{$element}'" : "");
			$this->baseDb->setQuery($query);
			$this->baseDb->query();

			$this->log(sprintf('Removed plugin entry for "%s"', 'plg_' . $folder . ($element ? '_' . $element : '')));

			return true;
		}
		elseif ($this->baseDb->tableExists('#__extensions'))
		{
			// Delete plugin(s) entry
			$query = "DELETE FROM `#__extensions` WHERE `folder` = " . $this->baseDb->quote($folder) . ((!is_null($element)) ? " AND `element` = '{$element}'" : "");
			$this->baseDb->setQuery($query);
			$this->baseDb->query();

			$this->log(sprintf('Removed extension entry for plugin "%s"', 'plg_' . $folder . ($element ? '_' . $element : '')));

			return true;
		}

		return false;
	}
public function deletePluginEntry ( $ folder , $ element = null ) { if ( $ this -> baseDb -> tableExists ( '#__plugins' ) ) { // Delete plugin(s) entry $ query = "DELETE FROM `#__plugins` WHERE `folder` = " . $ this -> baseDb -> quote ( $ folder ) . ( ( ! is_null ( $ element ) ) ? " AND `element` = '{$element}'" : "" ) ; $ this -> baseDb -> setQuery ( $ query ) ; $ this -> baseDb -> query ( ) ; $ this -> log ( sprintf ( 'Removed plugin entry for "%s"' , 'plg_' . $ folder . ( $ element ? '_' . $ element : '' ) ) ) ; return true ; } elseif ( $ this -> baseDb -> tableExists ( '#__extensions' ) ) { // Delete plugin(s) entry $ query = "DELETE FROM `#__extensions` WHERE `folder` = " . $ this -> baseDb -> quote ( $ folder ) . ( ( ! is_null ( $ element ) ) ? " AND `element` = '{$element}'" : "" ) ; $ this -> baseDb -> setQuery ( $ query ) ; $ this -> baseDb -> query ( ) ; $ this -> log ( sprintf ( 'Removed extension entry for plugin "%s"' , 'plg_' . $ folder . ( $ element ? '_' . $ element : '' ) ) ) ; return true ; } return false ; }
Remove plugin entries from the appropriate table, depending on the CMS version

@param   string  $name  Plugin name
@return  bool
Remove plugin entries from the appropriate table depending on the CMS version