| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 37 | 2 | 2 | 0.962 | statement_sequence[7] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 37 | 111 | components/com_content/views/category/view.html.php |
| 2 | 39 | 49 | components/com_newsfeeds/views/category/view.html.php |
| ||||
// Set page title per category
// because the application sets a default page title, we need to get it
// right from the menu item itself
if (is_object($menu)) {
$menu_params= new JParameter($menu->params);
if (!$menu_params->get('page_title')) {
$params->set('page_title', $category->title);
}
}
else {
$params->set('page_title', $category->title);
}
$document->setTitle($params->get('page_title'));
//set breadcrumbs
$pathwaycat= $category;
$path= array();
if (is_object($menu)
&& $menu->query['id'] != $category->id) {
$path[]= array($pathwaycat->title);
$pathwaycat= $pathwaycat->getParent();
while ($pathwaycat->id != $menu->query['id'])
{
$path[]= array( $pathwaycat->title ,$pathwaycat->slug
);
$pathwaycat= $pathwaycat->getParent();
}
$path= array_reverse($path);
foreach ($path as $element)
{
if ( isset ($element[1]))
{
$pathway->addItem($element[0], 'index.php?option=com_content&view=category&id='
. $element[1]);
}
else {
$pathway->addItem($element[0], '');
}
}
}
// Prepare category description
$category->description = JHtml::_('content.prepare', $category->description);
$params->def('date_format', JText::_('DATE_FORMAT_LC1'));
|
| ||||
// because the application sets a default page title, we need to get it
// right from the menu item itself
if (is_object($menu)) {
$menu_params= new JParameter($menu->params);
if (!$menu_params->get('page_title')) {
$params->set('page_title', $category->title);
}
}
else {
$params->set('page_title', $category->title);
}
$document->setTitle($params->get('page_title'));
//set breadcrumbs
$pathwaycat= $category;
$path= array();
if (is_object($menu)
&& $menu->query['id'] != $category->id) {
$path[]= array($pathwaycat->title);
$pathwaycat= $pathwaycat->getParent();
while ($pathwaycat->id != $menu->query['id'])
{
$path[]= array( $pathwaycat->title ,$pathwaycat->slug
);
$pathwaycat= $pathwaycat->getParent();
}
$path= array_reverse($path);
foreach ($path as $element)
{
if ( isset ($element[1]))
{
$pathway->addItem($element[0], 'index.php?option=com_newsfeeds&view=category&id='
. $element[1]);
}
else {
$pathway->addItem($element[0], '');
}
}
}
// Prepare category description
$category->description = JHtml::_('content.prepare', $category->description);
$k= 0;
|
| |||
// Set page title per category
// because the application sets a default page title, we need to get it
// right from the menu item itself
if (is_object($menu)) {
$menu_params=new JParameter($menu->params);
if (!$menu_params->get('page_title')) {
$params->set('page_title',$category->title);
}
}
else {
$params->set('page_title',$category->title);
}
$document->setTitle($params->get('page_title'));
//set breadcrumbs
$pathwaycat=$category;
$path=array();
if (is_object($menu)
&& $menu->query['id'] != $category->id) {
$path[]=array($pathwaycat->title);
$pathwaycat=$pathwaycat->getParent();
while ($pathwaycat->id != $menu->query['id']) {
$path[]=array( $pathwaycat->title ,
$pathwaycat->slug
);
$pathwaycat=$pathwaycat->getParent();
}
$path=array_reverse($path);
foreach ($path as $element) {
if ( isset ($element[1])) {
$pathway->addItem($element[0], [[#variable46632940]]
. $element[1]);
}
else {
$pathway->addItem($element[0],'');
}
}
}
// Prepare category description
$category->description =JHtml::_('content.prepare',$category->description);
[[#variable511e3f20]];
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#46632940]] | 'index.php?option=com_content&view=category&id=' |
| 1 | 2 | [[#46632940]] | 'index.php?option=com_newsfeeds&view=category&id=' |
| 2 | 1 | [[#511e3f20]] | $params->def('date_format',JText::_('DATE_FORMAT_LC1')) |
| 2 | 2 | [[#511e3f20]] | $k=0 |