Dotclear


Ignore:
Timestamp:
08/20/13 22:29:42 (12 years ago)
Author:
Lepeltier kévin
Branch:
ticket #1406-2
Children:
1538:b956d78197c5, 1539:e3954ad1f103
Message:

Ticket #1406 : on encapsule new dcMedia dans des try catch pour crriger plusieurs bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post_media.php

    r1179 r1537  
    2626} 
    2727 
    28 if ($post_id && $media_id && !empty($_POST['attach'])) 
    29 { 
    30      $core->media = new dcMedia($core); 
    31      $core->media->addPostMedia($post_id,$media_id); 
    32      http::redirect($core->getPostAdminURL($rs->post_type,$post_id,false)); 
    33 } 
     28try { 
     29     if ($post_id && $media_id && !empty($_POST['attach'])) 
     30     { 
     31          $core->media = new dcMedia($core); 
     32          $core->media->addPostMedia($post_id,$media_id); 
     33          http::redirect($core->getPostAdminURL($rs->post_type,$post_id,false)); 
     34     } 
    3435 
    35 try { 
    3636     $core->media = new dcMedia($core); 
    3737     $f = $core->media->getPostMedia($post_id,$media_id); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map