Changeset 3874:ab8368569446 for admin/post_media.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post_media.php
r3731 r3874 19 19 exit; 20 20 } 21 $rs = $core->blog->getPosts( array('post_id' => $post_id, 'post_type' => ''));21 $rs = $core->blog->getPosts(['post_id' => $post_id, 'post_type' => '']); 22 22 if ($rs->isEmpty()) { 23 23 exit; … … 30 30 if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { 31 31 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)]); 33 33 exit(); 34 34 } else {
Note: See TracChangeset
for help on using the changeset viewer.