Changeset 3167:9b0e5988c0eb for admin/media.php
- Timestamp:
- 02/11/16 15:35:39 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media.php
r3165 r3167 31 31 $dir = null; 32 32 33 // Attachement type if any 34 $link_type = !empty($_REQUEST['link_type']) ? $_REQUEST['link_type'] : null; 35 33 36 $page = !empty($_GET['page']) ? max(1,(integer) $_GET['page']) : 1; 34 37 $nb_per_page = ((integer) $core->auth->user_prefs->interface->media_by_page ? (integer) $core->auth->user_prefs->interface->media_by_page : 30); … … 85 88 $select = !empty($_REQUEST['select']) ? (integer)$_REQUEST['select'] : 0; // 0 : none, 1 : single media, >1 : multiple medias 86 89 87 $page_url_params = new ArrayObject(array('popup' => $popup,'select' => $select,'post_id' => $post_id ));90 $page_url_params = new ArrayObject(array('popup' => $popup,'select' => $select,'post_id' => $post_id,'link_type' => $link_type)); 88 91 if ($d) { 89 92 $page_url_params['d'] = $d; … … 774 777 function mediaItemLine($f,$i,$query,$table=false) 775 778 { 776 global $core, $page_url, $popup, $select, $post_id, $plugin_id, $page_url_params ;779 global $core, $page_url, $popup, $select, $post_id, $plugin_id, $page_url_params, $link_type; 777 780 778 781 $fname = $f->basename; … … 830 833 $act .= 831 834 '<a class="attach-media" title="'.__('Attach this file to entry').'" href="'. 832 $core->adminurl->get("admin.post.media", array('media_id' => $f->media_id, 'post_id' => $post_id,'attach' => 1)). 835 $core->adminurl->get("admin.post.media", 836 array('media_id' => $f->media_id, 'post_id' => $post_id,'attach' => 1,'link_type' => $link_type)). 833 837 '">'. 834 838 '<img src="images/plus.png" alt="'.__('Attach this file to entry').'"/>'.
Note: See TracChangeset
for help on using the changeset viewer.