mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Media Manager Issue #3426
This commit is contained in:
@@ -6,6 +6,11 @@ $types = array('img','video','glyph');
|
|||||||
|
|
||||||
$bbcode = in_array(e_QUERY,$types) ? e_QUERY : 'img';
|
$bbcode = in_array(e_QUERY,$types) ? e_QUERY : 'img';
|
||||||
|
|
||||||
|
if($bbcode === 'video')
|
||||||
|
{
|
||||||
|
$bbcode .= '&youtube=1';
|
||||||
|
}
|
||||||
|
|
||||||
header("Location: ".e_ADMIN_ABS.'image.php?mode=main&action=dialog&for='.$_SESSION['media_category'].'&tagid=&iframe=1&bbcode='.$bbcode, true);
|
header("Location: ".e_ADMIN_ABS.'image.php?mode=main&action=dialog&for='.$_SESSION['media_category'].'&tagid=&iframe=1&bbcode='.$bbcode, true);
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
@@ -234,12 +234,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($_GET['for'])) // leave in upload directory if no category given.
|
||||||
|
|
||||||
if($_GET['for'] != '') // leave in upload directory if no category given.
|
|
||||||
{
|
{
|
||||||
$uploadPath = varset($_GET['path'],null);
|
$uploadPath = varset($_GET['path'],null);
|
||||||
$result = e107::getMedia()->importFile($fileName, $_GET['for'], array('path'=>$uploadPath));
|
$for = $tp->filter($_GET['for']);
|
||||||
|
$for = str_replace(array('+','^'),'', $for);
|
||||||
|
|
||||||
|
$result = e107::getMedia()->importFile($fileName, $for, array('path'=>$uploadPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user