Changeset 2589
- Timestamp:
- 06/17/08 09:07:28 (17 months ago)
- Files:
-
- 1 modified
-
branches/release-40/php/lib/mtdb_base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/php/lib/mtdb_base.php
r2588 r2589 493 493 $args['lastn'] = $args['limit']; 494 494 } elseif (!isset($args['days']) && !isset($args['lastn'])) { 495 if ($days = $blog['blog_days_on_index']) {496 if (!isset($args['recently_commented_on'])) {497 $args['days'] = $days;498 }499 } elseif ($posts = $blog['blog_entries_on_index']) {500 $args['lastn'] = $posts;501 }495 # if ($days = $blog['blog_days_on_index']) { 496 # if (!isset($args['recently_commented_on'])) { 497 # $args['days'] = $days; 498 # } 499 # } elseif ($posts = $blog['blog_entries_on_index']) { 500 # $args['lastn'] = $posts; 501 # } 502 502 } 503 503 if ($args['limit'] == 'auto') { 504 504 if (($_REQUEST['limit'] > 0) && ($_REQUEST['limit'] < $args['lastn'])) { 505 505 $args['lastn'] = intval($_REQUEST['limit']); 506 } elseif (!isset($args['days']) && !isset($args['lastn'])) { 507 if ($days = $blog['blog_days_on_index']) { 508 if (!isset($args['recently_commented_on'])) { 509 $args['days'] = $days; 510 } 511 } elseif ($posts = $blog['blog_entries_on_index']) { 512 $args['lastn'] = $posts; 513 } 506 514 } 507 515 }
