Changeset 2521

Show
Ignore:
Timestamp:
06/06/08 07:40:15 (20 months ago)
Author:
fumiakiy
Message:

Load blog in context if the request did not specify it. BugId:80045

Files:
1 modified

Legend:

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

    r2519 r2521  
    469469        } 
    470470 
     471        if ( !$blog ) { 
     472            global $mt; 
     473            $blog = $this->fetch_blog($mt->blog_id); 
     474        } 
     475 
    471476        // determine any custom fields that we should filter on 
    472477        $fields = array(); 
     
    495500        #        $args['lastn'] = $posts; 
    496501        #    } 
    497             if ($posts = $blog['blog_entries_on_index']) { 
    498                 $limit = $posts; 
    499             } 
    500502        } 
    501503        if ($args['limit'] == 'auto') {