Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post_media.php

    r3731 r3874  
    1919    exit; 
    2020} 
    21 $rs = $core->blog->getPosts(array('post_id' => $post_id, 'post_type' => '')); 
     21$rs = $core->blog->getPosts(['post_id' => $post_id, 'post_type' => '']); 
    2222if ($rs->isEmpty()) { 
    2323    exit; 
     
    3030        if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { 
    3131            header('Content-type: application/json'); 
    32             echo json_encode(array('url' => $core->getPostAdminURL($rs->post_type, $post_id, false))); 
     32            echo json_encode(['url' => $core->getPostAdminURL($rs->post_type, $post_id, false)]); 
    3333            exit(); 
    3434        } else { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map