Code Duplication    Length = 6-6 lines in 2 locations

programs/utilit/agent.ui.php 2 locations

@@ 117-122 (lines=6) @@
114
		
115
		if (absences_Agent::getCurrentUser()->isManager())
116
		{
117
            if ('rights' !== bab_rp('idx'))
118
            {
119
		        $col3->addItem($W->Link($W->Icon(absences_translate('Rights'), Func_Icons::APPS_VACATIONS), 
120
		            absences_addon()->getUrl().'vacadm&idx=rights&idu='.$this->agent->getIdUser())->setOpenMode(Widget_Link::OPEN_POPUP)
121
		        );
122
            }
123
		    $col3->addItem($W->Link($W->Icon(absences_translate('Export'), Func_Icons::MIMETYPES_OFFICE_SPREADSHEET), absences_addon()->getUrl().'vacadm&idx=export&id_user='.$this->agent->getIdUser()));
124
		
125
		} 
@@ 133-138 (lines=6) @@
130
		        absences_addon()->getUrl().'vacchart&idx=rights&idu='.$this->agent->getIdUser().'&ide='.$entity['id'].'&popup=1')->setOpenMode(Widget_Link::OPEN_POPUP)
131
		    );
132
		} 
133
		else if ($superior)
134
		{
135
		    $col3->addItem($W->Link($W->Icon(absences_translate('Balance'), Func_Icons::APPS_VACATIONS),
136
		            absences_addon()->getUrl().'vacuser&idx=viewrights&id_user='.$this->agent->getIdUser().'&popup=1')->setOpenMode(Widget_Link::OPEN_POPUP)
137
		    );
138
		}
139
		
140
		
141