To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
04/30/10 11:15:17 (2 years ago)
Author:
dordille
Message:

Improvements for displaying images with blogSlots. #302.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaBlogItemTable.class.php

    r1022 r1102  
    4848    return Doctrine::getTable('aBlogCategory')->addCategoriesForUser($user, $admin, $q); 
    4949  } 
    50    
     50 
     51 
    5152  public function addCategories(Doctrine_Query $q=null) 
    5253  { 
     
    5859  } 
    5960 
     61  /** 
     62   * Given an array of blogItems this function will populate its virtual page 
     63   * areas with the current slot versions. 
     64   * @param aBlogItem $blogItems 
     65   */ 
    6066  public static function populatePages($blogItems) 
    6167  {     
     
    6975      $q = aPageTable::queryWithSlots(); 
    7076      $q->whereIn('id', $pageIds); 
    71       $q->execute(); 
     77      $pages = $q->execute(); 
     78      aTools::cacheVirtualPages($pages); 
    7279    } 
    7380  }