Dotclear

Changeset 619:b56cf7e11085 for themes


Ignore:
Timestamp:
07/22/11 16:02:11 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
themes
Message:

Fix conditional read more…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_public.php

    r614 r619  
    6262          global $core; 
    6363           
    64           if (empty($attr['cut_string']) || empty($attr['full'])) { 
     64          if (empty($attr['cut_string']) || !empty($attr['full'])) { 
    6565               return ''; 
    6666          } 
     
    7070               $urls = '1'; 
    7171          } 
    72            
     72 
    7373          $short = $core->tpl->getFilters($attr); 
     74          $cut = $attr['cut_string']; 
    7475          $attr['cut_string'] = 0; 
    7576          $full = $core->tpl->getFilters($attr); 
     77          $attr['cut_string'] = $cut; 
    7678 
    7779          return '<?php if (strlen('.sprintf($full,'$_ctx->posts->getContent('.$urls.')').') > '. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map