Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 1 | 0.998 | statement_sequence[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 81 | administrator/components/com_installer/models/install.php |
2 | 27 | 195 | libraries/joomla/updater/update.php |
| ||||
// Install the package if (!$installer->install($package['dir'])) { // There was an error installing the package $msg= JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Error')); $result= FALSE; } else { // Package installed sucessfully $msg= JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Success')); $result= TRUE; } // Set some model state values $mainframe->enqueueMessage($msg); $this->setState('name', $installer->get('name')); $this->setState('result', $result); $this->setState('message', $installer->message); $this->setState('extension_message', $installer->get('extension_message')); // Cleanup the install files if (!is_file($package['packagefile'])) { $config= &JFactory::getConfig(); $package['packagefile']= $config->getValue('config.tmp_path') . DS . $package['packagefile']; } JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']); return $result; |
| ||||
// Install the package if (!$installer->install($package['dir'])) { // There was an error installing the package $msg= JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Error')); $result= FALSE; } else { // Package installed sucessfully $msg= JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Success')); $result= TRUE; } // Set some model state values $mainframe->enqueueMessage($msg); $this->setState('name', $installer->get('name')); $this->setState('result', $result); $this->setState('message', $installer->message); $this->setState('extension.message', $installer->get('extension.message')); // Cleanup the install files if (!is_file($package['packagefile'])) { $config= & JFactory::getConfig(); $package['packagefile']= $config->getValue('config.tmp_path') . DS . $package['packagefile']; } JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']); return $result; |
| |||
// Install the package if (!$installer->install($package['dir'])) { // There was an error installing the package $msg=JText::sprintf('INSTALLEXT',JText::_($package['type']),JText::_('Error')); $result=FALSE; } else { // Package installed sucessfully $msg=JText::sprintf('INSTALLEXT',JText::_($package['type']),JText::_('Success')); $result=TRUE; } // Set some model state values $mainframe->enqueueMessage($msg); $this->setState('name',$installer->get('name')); $this->setState('result',$result); $this->setState('message',$installer->message); $this->setState( [[#variable4605e100]],$installer->get( [[#variable4605e100]])); // Cleanup the install files if (!is_file($package['packagefile'])) { $config= &JFactory::getConfig(); $package['packagefile']=$config->getValue('config.tmp_path') . DS . $package['packagefile']; } JInstallerHelper::cleanupInstall($package['packagefile'],$package['extractdir']); return $result; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4605e100]] | 'extension_message' |
1 | 2 | [[#4605e100]] | 'extension.message' |