Subversion Repositories oidplus

Rev

Rev 1454 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1454 Rev 1455
Line 1247... Line 1247...
1247
                                        $stufen = array();
1247
                                        $stufen = array();
1248
                                        $max_ent = 0;
1248
                                        $max_ent = 0;
1249
                                        while ($row = $res->fetch_object()) {
1249
                                        while ($row = $res->fetch_object()) {
1250
                                                $max_ent++;
1250
                                                $max_ent++;
1251
                                                if ($max_ent > 1000) { // TODO: we need to find a solution for this!!!
1251
                                                if ($max_ent > 1000) { // TODO: we need to find a solution for this!!!
1252
                                                        $menu_entry = array('id' => '', 'icon' => '', 'text' => _L('There are too many child items to display'), 'indent' => 0);
1252
                                                        $menu_entry = array('id' => '', 'icon' => '', 'text' => _L('List truncated due to too many subordinate elements'), 'indent' => 0);
1253
                                                        $menu_entries[] = $menu_entry;
1253
                                                        $menu_entries[] = $menu_entry;
1254
                                                        $stufen[] = $stufe;
1254
                                                        $stufen[] = $stufe;
1255
                                                        break;
1255
                                                        break;
1256
                                                }
1256
                                                }
1257
 
1257
 
Line 1595... Line 1595...
1595
                        $output .= '<p>'._L('One item is hidden. Please <a %1>log in</a> to see it.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>';
1595
                        $output .= '<p>'._L('One item is hidden. Please <a %1>log in</a> to see it.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>';
1596
                } else if ($items_hidden > 1) {
1596
                } else if ($items_hidden > 1) {
1597
                        $output .= '<p>'._L('%1 items are hidden. Please <a %2>log in</a> to see them.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>';
1597
                        $output .= '<p>'._L('%1 items are hidden. Please <a %2>log in</a> to see them.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>';
1598
                }
1598
                }
1599
 
1599
 
1600
                if ($max_ent > 1000) $output .= '<p>'._L('There are too many child items to display') . '</p>'; // TODO: we need to find a solution for this!!!
1600
                if ($max_ent > 1000) $output .= '<p><b>'._L('List truncated due to too many subordinate elements') . '</b></p>'; // TODO: we need to find a solution for this!!!
1601
 
1601
 
1602
                return $output;
1602
                return $output;
1603
        }
1603
        }
1604
 
1604
 
1605
        /**
1605
        /**