summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-02-21 10:42:00 +0000
committerfisharebest <fisharebest@gmail.com>2011-02-21 10:42:00 +0000
commitcecfa4b921610da3b92c2c43622bfd59f4398751 (patch)
tree7904805c0eac5582ea07224562b792917d07a239
parente74e462f4d17380124f09d8ce5c98128047507fc (diff)
downloadwebtrees-cecfa4b921610da3b92c2c43622bfd59f4398751.tar.gz
webtrees-cecfa4b921610da3b92c2c43622bfd59f4398751.tar.bz2
webtrees-cecfa4b921610da3b92c2c43622bfd59f4398751.zip
Remove arbitrary limit of 1000 recent changes. This dates back to before AJAX loading of blocks. If there are many changes, it won't delay other blocks.
-rw-r--r--includes/functions/functions_print_lists.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index 7e7f1a68e2..058f07eb82 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -1330,11 +1330,8 @@ function format_surname_list($surnames, $style, $totals, $type) {
*/
function print_changes_list($change_ids, $sort, $show_parents=false) {
global $SHOW_MARRIED_NAMES, $TEXT_DIRECTION, $WT_IMAGES;
- define('NMAX', 1000);
$n = 0;
foreach ($change_ids as $change_id) {
- if ($n >= NMAX)
- break;
$record = WT_GedcomRecord::getInstance($change_id);
if (!$record || !$record->canDisplayDetails()) {
continue;
@@ -1383,9 +1380,6 @@ function print_changes_list($change_ids, $sort, $show_parents=false) {
$return .= "</div>";
}
$return .= WT_I18N::translate('Showing %1$s to %2$s of %3$s', 1, $n, $n);
- if ($n >= NMAX) {
- $return .= "<div class='warning'>" . WT_I18N::translate('Total changes exceed limit (%d)', NMAX) . "</div>";
- }
return $return;
}
@@ -1398,7 +1392,6 @@ function print_changes_list($change_ids, $sort, $show_parents=false) {
*/
function print_changes_table($change_ids, $sort, $show_parents=false) {
global $SHOW_MARRIED_NAMES, $TEXT_DIRECTION, $WT_IMAGES;
- define('NMAX', 1000);
$return = '';
$n = 0;
$table_id = "ID" . floor(microtime() * 1000000); // sorttable requires a unique ID
@@ -1450,8 +1443,6 @@ function print_changes_table($change_ids, $sort, $show_parents=false) {
//-- table body
foreach ($change_ids as $change_id) {
- if ($n >= NMAX)
- break;
$record = WT_GedcomRecord::getInstance($change_id);
if (!$record || !$record->canDisplayDetails()) {
continue;
@@ -1520,9 +1511,6 @@ function print_changes_table($change_ids, $sort, $show_parents=false) {
$return .= "</tbody>";
$return .= "</table>";
$return .= WT_I18N::translate('Showing %1$s to %2$s of %3$s', 1, $n, $n);
- if ($n >= NMAX) {
- $return .= "<div class='warning'>" . WT_I18N::translate('Total changes exceed limit (%d)', NMAX) . "</div>";
- }
return $return;
}