Dotclear

Changeset 2664:c47621d6be97 for admin


Ignore:
Timestamp:
02/18/14 09:04:27 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Children:
2665:2976f191aadb, 2695:0af47a71595a
Message:

Fix incorrect link returned by adminMediaURL behavior. Closes #1904

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r2649 r2664  
    7575 
    7676$page_url = 'media.php?popup='.$popup.'&post_id='.$post_id; 
    77 $temp = $core->callBehavior('adminMediaURL',$page_url); 
    78 if ($temp != '') { 
    79      $page_url=$temp; 
    80 } 
     77if (!empty($temp = $core->callBehavior('adminMediaURL',$page_url))) { 
     78     $page_url = $temp; 
     79} 
     80 
    8181if ($popup) { 
    8282     $open_f = array('dcPage','openPopup'); 
     
    579579     } else { 
    580580          $link = 'media_item.php?id='.$f->media_id.'&amp;popup='.$popup.'&amp;post_id='.$post_id; 
    581           $link = $core->callBehavior('adminMediaURL',$link); 
     581        if (!empty($temp = $core->callBehavior('adminMediaURL',$link))) { 
     582            $link = $temp; 
     583        } 
    582584     } 
    583585 
Note: See TracChangeset for help on using the changeset viewer.

Sites map