english/libraries/joomla/installer/adapters/language.php
/**
	 * Custom discover install method
	 * Basically updates the manifest cache and leaves everything alone
	 */
Custom discover install method
Basically updates the manifest cache and leaves everything alone
Custom discover install method Basically updates the manifest cache and leaves everything alone
public function discover_install()
	{
		$client = JApplicationHelper::getClientInfo($this->parent->extension->client_id);
		$short_element = $this->parent->extension->element;
		$manifestPath = $client->path . '/language/' . $short_element . '/' . $short_element . '.xml';
		$this->parent->manifest = $this->parent->isManifest($manifestPath);
		$this->parent->setPath('manifest', $manifestPath);
		$this->parent->setPath('source', $client->path . '/language/' . $short_element);
		$this->parent->setPath('extension_root', $this->parent->getPath('source'));
		$manifest_details = JApplicationHelper::parseXMLInstallFile($this->parent->getPath('manifest'));
		$this->parent->extension->manifest_cache = json_encode($manifest_details);
		$this->parent->extension->state = 0;
		$this->parent->extension->name = $manifest_details['name'];
		$this->parent->extension->enabled = 1;
		try {
			$this->parent->extension->store();
		}
		catch(JException $e)
		{
			JError::raiseWarning(101, JText::_('JLIB_INSTALLER_ERROR_LANG_DISCOVER_STORE_DETAILS'));
			return false;
		}
		return $this->parent->extension->get('extension_id');
	}
public function discover_install ( ) { $ client = JApplicationHelper :: getClientInfo ( $ this -> parent -> extension -> client_id ) ; $ short_element = $ this -> parent -> extension -> element ; $ manifestPath = $ client -> path . '/language/' . $ short_element . '/' . $ short_element . '.xml' ; $ this -> parent -> manifest = $ this -> parent -> isManifest ( $ manifestPath ) ; $ this -> parent -> setPath ( 'manifest' , $ manifestPath ) ; $ this -> parent -> setPath ( 'source' , $ client -> path . '/language/' . $ short_element ) ; $ this -> parent -> setPath ( 'extension_root' , $ this -> parent -> getPath ( 'source' ) ) ; $ manifest_details = JApplicationHelper :: parseXMLInstallFile ( $ this -> parent -> getPath ( 'manifest' ) ) ; $ this -> parent -> extension -> manifest_cache = json_encode ( $ manifest_details ) ; $ this -> parent -> extension -> state = 0 ; $ this -> parent -> extension -> name = $ manifest_details [ 'name' ] ; $ this -> parent -> extension -> enabled = 1 ; try { $ this -> parent -> extension -> store ( ) ; } catch ( JException $ e ) { JError :: raiseWarning ( 101 , JText :: _ ( 'JLIB_INSTALLER_ERROR_LANG_DISCOVER_STORE_DETAILS' ) ) ; return false ; } return $ this -> parent -> extension -> get ( 'extension_id' ) ; }
Custom discover install method
 Basically updates the manifest cache and leaves everything alone
Custom discover install method Basically updates the manifest cache and leaves everything alone
// Need to find to find where the XML file is since we don't store this normally //$this->parent->extension->params = $this->parent->getParams();