Dotclear


Ignore:
Timestamp:
10/09/13 09:30:33 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Children:
2322:a75984c93a86, 2406:325f49056c79
Message:

Fix invalid html for media page (in attachment context) because of nested form.
Closes #1761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r2263 r2320  
    584584     if ($post_id && !$f->d) { 
    585585          $act .=  
    586           '<form action="post_media.php" method="post">'. 
    587           '<input type="image" src="images/plus.png" alt="'.__('Attach this file to entry').'" '. 
    588           'title="'.__('Attach this file to entry').'" /> '. 
    589           form::hidden('media_id',$f->media_id). 
    590           form::hidden('post_id',$post_id). 
    591           form::hidden('attach',1). 
    592           $core->formNonce(). 
    593           '</form>'; 
     586          '<a class="attach-media" title="'.__('Attach this file to entry').'" href="post_media.php?media_id='.$f->media_id. 
     587          '&amp;post_id='.$post_id.'&amp;attach=1">'. 
     588          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'"/>'. 
     589          '</a>'; 
    594590     } 
    595591      
     
    622618     return $res; 
    623619} 
    624 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map