Changeset 2589

Show
Ignore:
Timestamp:
06/17/08 09:07:28 (17 months ago)
Author:
takayama
Message:

Fixed BugId:80146
* Applied patch (again..)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/php/lib/mtdb_base.php

    r2588 r2589  
    493493            $args['lastn'] = $args['limit']; 
    494494        } 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#            } 
    502502        } 
    503503        if ($args['limit'] == 'auto') { 
    504504            if (($_REQUEST['limit'] > 0) && ($_REQUEST['limit'] < $args['lastn'])) { 
    505505                $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                }             
    506514            } 
    507515        }