Changeset 1022:6c73aaf901f8
- Timestamp:
- 08/03/12 10:07:07 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media_item.php
r663 r861 15 15 dcPage::check('media,media_admin'); 16 16 17 $tab = empty($_REQUEST['tab']) ? '' : $_REQUEST['tab']; 18 17 19 $post_id = !empty($_GET['post_id']) ? (integer) $_GET['post_id'] : null; 18 20 if ($post_id) { … … 103 105 try { 104 106 $core->media->updateFile($file,$newFile); 105 http::redirect($page_url.'&id='.$id.'&fupd=1 ');107 http::redirect($page_url.'&id='.$id.'&fupd=1&tab=media-details-tab'); 106 108 } catch (Exception $e) { 107 109 $core->error->add($e->getMessage()); … … 115 117 $foo = null; 116 118 $core->media->mediaFireRecreateEvent($file); 117 http::redirect($page_url.'&id='.$id.'&thumbupd=1 ');119 http::redirect($page_url.'&id='.$id.'&thumbupd=1&tab=media-details-tab'); 118 120 } catch (Exception $e) { 119 121 $core->error->add($e->getMessage()); … … 165 167 $starting_scripts. 166 168 dcPage::jsDatePicker(). 167 dcPage::jsPageTabs( )169 dcPage::jsPageTabs($tab) 168 170 ); 169 171 … … 340 342 $strong_link = ($s == $thumb_size) ? '<strong>%s</strong>' : '%s'; 341 343 printf($strong_link,'<a href="'.html::escapeURL($page_url). 342 '&id='.$id.'&size='.$s.' ">'.$core->media->thumb_sizes[$s][2].'</a> | ');343 } 344 echo '<a href="'.html::escapeURL($page_url).'&id='.$id.'&size=o ">'.__('original').'</a>';344 '&id='.$id.'&size='.$s.'&tab=media-details-tab">'.$core->media->thumb_sizes[$s][2].'</a> | '); 345 } 346 echo '<a href="'.html::escapeURL($page_url).'&id='.$id.'&size=o&tab=media-details-tab">'.__('original').'</a>'; 345 347 echo '</p>'; 346 348 … … 377 379 { 378 380 echo 379 '<p><strong><a href="'.html::escapeHTML($page_url).'&id='.$id.'&find_posts=1 ">'.381 '<p><strong><a href="'.html::escapeHTML($page_url).'&id='.$id.'&find_posts=1&tab=media-details-tab">'. 380 382 __('Show entries containing this media').'</a></strong></p>'; 381 383 }
Note: See TracChangeset
for help on using the changeset viewer.