Show
Ignore:
Timestamp:
06/03/08 22:02:56 (18 months ago)
Author:
bchoate
Message:

Fix to permit plugins that prepopulate the entries stash to call the entries handler allowing for further filtering using category/tag/author attributes. BugId:80022

Files:
1 modified

Legend:

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

    r2294 r2496  
    1717        // break that context, clear the stashed entries so fetch_entries 
    1818        // can reselect. 
    19         if ($ctx->stash('entries') && 
    20             (isset($args['category']) || isset($args['categories']) || 
    21              isset($args['tag']) || isset($args['tags']) || 
    22              isset($args['id']) || 
    23              isset($args['author']) || 
     19        $this_tag = strtolower($ctx->this_tag()); 
     20        if (($this_tag == 'mtentries') || ($this_tag == 'mtpages')) { 
     21            if ($ctx->stash('entries') && 
     22                (isset($args['category']) || isset($args['categories']) || 
     23                 isset($args['tag']) || isset($args['tags']) || 
     24                 isset($args['author']) )) 
     25                $ctx->__stash['entries'] = null; 
     26        } 
     27        if ($ctx->__stash['entries'] && 
     28            (isset($args['id']) || 
    2429             isset($args['recently_commented_on']) || 
    2530             isset($args['include_subcategories']) ||