Skip to content
Snippets Groups Projects
Commit 7b877f51 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

minor media manager tweaks

darcs-hash:20060520172118-7ad00-ad605bf51c8774d734012ece0071f70e6624788a.gz
parent 8073bfb3
No related branches found
No related tags found
No related merge requests found
......@@ -863,7 +863,7 @@ function tpl_mediaContent(){
ptln('<div id="media__content">');
if($_REQUEST['edit']){
media_metaform($IMG,$AUTH);
}elseif($INUSE){
}elseif(is_array($INUSE)){
media_filesinuse($INUSE,$IMG);
}else{
media_filelist($NS,$AUTH,$JUMPTO);
......
......@@ -36,6 +36,7 @@
// handle upload
if($_FILES['upload']['tmp_name']){
$JUMPTO = media_upload($NS,$AUTH);
if($JUMPTO) $NS = getNS($JUMPTO);
}
// handle meta saving
......
......@@ -23,8 +23,8 @@
<body>
<div id="media__manager" class="dokuwiki">
<?html_msgarea()?>
<div id="media__left">
<?html_msgarea()?>
<h1><?php echo hsc($lang['mediaselect'])?></h1>
<?php tpl_mediaTree() ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment