Changeset 2129

Show
Ignore:
Timestamp:
04/28/08 07:25:55 (3 months ago)
Author:
fumiakiy
Message:

Rewrote the function signature and the call to it in PHP4-friendly way. BugId:79535

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-36/php/lib/block.mtentries.php

    r2103 r2129  
    101101        if ( isset($args['offset']) && ($args['offset'] == 'auto') ) 
    102102            $total_count = 0; 
    103         $entries =& $ctx->mt->db->fetch_entries($args, $total_count); 
     103        $entries =& $ctx->mt->db->fetch_entries($args, &$total_count); 
    104104        if ( isset($args['offset']) && ($args['offset'] == 'auto') ) 
    105105            $ctx->stash('__pager_total_count', $total_count); 
  • branches/release-36/php/lib/mtdb_base.php

    r2104 r2129  
    449449    } 
    450450 
    451     function &fetch_entries($args, &$total_count = NULL) { 
     451    function &fetch_entries($args, $total_count = NULL) { 
    452452        if ($sql = $this->include_exclude_blogs($args)) { 
    453453            $blog_filter = 'and entry_blog_id ' . $sql;