Dotclear

Changeset 2106:4765c2ddc532


Ignore:
Timestamp:
09/26/13 16:24:53 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Fixes JPG details block, closes #1594

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media_item.php

    r2098 r2106  
    521521     echo '<h3>'.__('Image details').'</h3>'; 
    522522      
    523      if (count($file->media_meta) == 0) 
    524      { 
    525           echo '<p>'.__('No detail').'</p>'; 
    526      } 
    527      else 
    528      { 
    529           echo '<ul>'; 
     523     $details = ''; 
     524     if (count($file->media_meta) > 0) 
     525     { 
    530526          foreach ($file->media_meta as $k => $v) 
    531527          { 
    532528               if ((string) $v) { 
    533                     echo '<li><strong>'.$k.':</strong> '.html::escapeHTML($v).'</li>'; 
     529                    $details .= '<li><strong>'.$k.':</strong> '.html::escapeHTML($v).'</li>'; 
    534530               } 
    535531          } 
    536           echo '</ul>'; 
     532     } 
     533     if ($details) { 
     534          echo '<ul>'.$details.'</ul>'; 
     535     } else { 
     536          echo '<p>'.__('No detail').'</p>'; 
    537537     } 
    538538} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map