Changeset 2720:bc400ebfc2e9 for admin/media.php
- Timestamp:
- 06/19/14 16:56:47 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media.php
r2678 r2720 74 74 $popup = (integer) !empty($_GET['popup']); 75 75 76 $page_url = 'media.php?popup='.$popup.'&post_id='.$post_id;76 $page_url = $core->adminurl->get("admin.media",array('popup' => $popup,'post_id' => $post_id)); 77 77 if (($temp = $core->callBehavior('adminMediaURL',$page_url))!='') { 78 78 $page_url = $temp; … … 377 377 $items = array_values(array_merge($dir['dirs'],$dir['files'])); 378 378 379 $fmt_form_media = '<form action=" media.php" method="post" id="form-medias">'.379 $fmt_form_media = '<form action="'.$core->adminurl->get("admin.media").'" method="post" id="form-medias">'. 380 380 '<div class="files-group">%s</div>'. 381 381 '<p class="hidden">'.$core->formNonce() . form::hidden(array('d'),$d).'</p>'; … … 403 403 404 404 echo 405 '<form action=" media.php" method="get" id="filters-form">'.405 '<form action="'.$core->adminurl->get("admin.media").'" method="get" id="filters-form">'. 406 406 '<p class="two-boxes"><label for="file_sort" class="classic">'.__('Sort files:').'</label> '. 407 407 form::combo('file_sort',$sort_combo,$file_sort).'</p>'. … … 522 522 echo 523 523 '<p class="one-file form-help info">'.__('To send several files at the same time, you can activate the enhanced uploader in'). 524 ' <a href=" preferences.php?tab=user-options">'.__('My preferences').'</a></p>';524 ' <a href="'.$core->adminurl->get("admin.user.preferences",array('tab' => 'user-options')).'">'.__('My preferences').'</a></p>'; 525 525 } 526 526 … … 555 555 if (!$popup) { 556 556 echo '<div class="info"><p>'.sprintf(__('Current settings for medias and images are defined in %s'), 557 '<a href=" blog_pref.php#medias-settings">'.__('Blog parameters').'</a>').'</p></div>';557 '<a href="'.$core->adminurl->get("admin.blog.pref").'#medias-settings">'.__('Blog parameters').'</a>').'</p></div>'; 558 558 } 559 559 … … 578 578 } 579 579 } else { 580 $link = 'media_item.php?id='.$f->media_id.'&popup='.$popup.'&post_id='.$post_id;580 $link = $core->adminurl->get("admin.media.item", array('id' => $f->media_id,'popup' => $popup,'post_id' => $post_id)); 581 581 if (($temp = $core->callBehavior('adminMediaURL',$link))!='') { 582 582 $link = $temp; … … 608 608 if ($post_id && !$f->d) { 609 609 $act .= 610 '<a class="attach-media" title="'.__('Attach this file to entry').'" href="post_media.php?media_id='.$f->media_id. 611 '&post_id='.$post_id.'&attach=1">'. 610 '<a class="attach-media" title="'.__('Attach this file to entry').'" href="'. 611 $core->adminurl->get("admin.post.media", array('media_id' => $f->media_id, 'post_id' => $post_id,'attach' => 1)). 612 '">'. 612 613 '<img src="images/plus.png" alt="'.__('Attach this file to entry').'"/>'. 613 614 '</a>'; … … 633 634 634 635 if ($f->type == 'audio/mpeg3') { 635 $lst .= '<li>'.dcMedia::mp3player($f->file_url, 'index.php?pf=player_mp3.swf').'</li>';636 $lst .= '<li>'.dcMedia::mp3player($f->file_url,$core->adminurl->get("admin.home",array('pf' => 'player_mp3.swf'))).'</li>'; 636 637 } 637 638
Note: See TracChangeset
for help on using the changeset viewer.