Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Jul 22, 2016
1 parent c3d7346 commit b01124e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions inc/profileauthorizedwidget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function showForm($ID, $options = array()){

private function displayList($widgetlist, $category = '', $pluginname){
$viewNames = $this->getViewNames();
foreach($widgetlist as $widgetId => $widgetTitle){
foreach($widgetlist as $widgetId => $widgetTitle){

if(!is_array($widgetTitle)) {
echo "<tr class='tab_bg_1 $pluginname'>";
Expand All @@ -108,12 +108,13 @@ private function displayList($widgetlist, $category = '', $pluginname){
if($category != ''){
$newcategory .= $category.' > ';
}

if(is_numeric($widgetId)) {
$widgetId = $viewNames[$widgetId];
}
$newcategory .= $widgetId;
$this->displaylist($widgetTitle,$newcategory,$pluginname);
}
}
}
}

Expand Down Expand Up @@ -168,10 +169,13 @@ private function getLocalName($plugin_name) {
*/
private function getViewNames() {
$names = array();
$names[1] = __('Personal View');
$names[2] = __('Group View');
$names[3] = __('Global View');
$names[4] = _n('RSS feed', 'RSS feeds', 2);
$names[1] = _n('Ticket','Tickets', 2);
$names[2] = _n('Problem','Problems', 2);
$names[3] = _n('Change','Changes', 2);
$names[4] = __('Group View');
$names[5] = __('Personal View');
$names[6] = __('Global View');
$names[7] = _n('RSS feed', 'RSS feeds', 2);

return $names;
}
Expand Down

0 comments on commit b01124e

Please sign in to comment.