Dotclear


Ignore:
Timestamp:
03/27/13 21:30:20 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

with_category attribute was buggy in tpl:EntryFirstImage, fixes #1395 (thank's DaBourz? for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.tpl.context.php

    r975 r1135  
    451451           
    452452          # No src, look in category description if available 
    453           if (!$src && $with_category && $_ctx->categories) 
    454           { 
    455                if (preg_match_all($pattern,$_ctx->categories->cat_desc,$m) > 0) 
     453        if (!$src && $with_category && $_ctx->posts->cat_desc) 
     454        { 
     455               if (preg_match_all($pattern,$_ctx->posts->cat_desc,$m) > 0) 
    456456               { 
    457457                    foreach ($m[1] as $i => $img) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map