public function normalizePluginEntry($folder, $element)
	{
		if ($this->baseDb->tableExists('#__plugins'))
		{
			$folder  = strtolower($folder);
			$element = strtolower($element);
			$name    = ucfirst($folder) . ' - ' . ucfirst($element);

			return $this->renamePluginEntry($folder, $element, $name);
		}
		else if ($this->baseDb->tableExists('#__extensions'))
		{
			$folder  = strtolower($folder);
			$element = strtolower($element);
			$name    = 'plg_' . $folder . '_' . $element;

			return $this->renamePluginEntry($folder, $element, $name);
		}
	}
public function normalizePluginEntry($folder, $element)
	{
		if ($this->baseDb->tableExists('#__plugins'))
		{
			$folder  = strtolower($folder);
			$element = strtolower($element);
			$name    = ucfirst($folder) . ' - ' . ucfirst($element);

			return $this->renamePluginEntry($folder, $element, $name);
		}
		else if ($this->baseDb->tableExists('#__extensions'))
		{
			$folder  = strtolower($folder);
			$element = strtolower($element);
			$name    = 'plg_' . $folder . '_' . $element;

			return $this->renamePluginEntry($folder, $element, $name);
		}
	}
public function normalizePluginEntry ( $ folder , $ element ) { if ( $ this -> baseDb -> tableExists ( '#__plugins' ) ) { $ folder = strtolower ( $ folder ) ; $ element = strtolower ( $ element ) ; $ name = ucfirst ( $ folder ) . ' - ' . ucfirst ( $ element ) ; return $ this -> renamePluginEntry ( $ folder , $ element , $ name ) ; } else if ( $ this -> baseDb -> tableExists ( '#__extensions' ) ) { $ folder = strtolower ( $ folder ) ; $ element = strtolower ( $ element ) ; $ name = 'plg_' . $ folder . '_' . $ element ; return $ this -> renamePluginEntry ( $ folder , $ element , $ name ) ; } }
Standardize a plugin entry name

@param   string  $folder   Plugin folder
@param   string  $element  Plugin element
@return  bool
Standardize a plugin entry name