1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

tif files not generally supported, but svg are

This commit is contained in:
e107steved
2010-10-10 21:26:18 +00:00
parent e3a81b1f48
commit 6be3e0bf94
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ function imageselector_shortcode($parm = '', $mod = '')
{
$qry = "SELECT * FROM `#core_media` WHERE media_userclass IN (".USERCLASS_LIST.") ";
$qry .= vartrue($parms['media']) && $parms['media'] !== 'all' ? " AND media_category='".$tp->toDB($parms['media'])."' " : " AND `media_category` NOT REGEXP '_icon_16|_icon_32|_icon_48|_icon_64' ";
$qry .= " AND media_url REGEXP '.jpg|.png|.gif|.JPG|.PNG|.GIF' ORDER BY media_name";
$qry .= " AND media_url REGEXP '\.jpg$|\.png$|\.gif$|\.jpeg$|\.svn$|\.JPG$|\.PNG$|\.GIF$|\.jpeg$|\.SVN$' ORDER BY media_name";
// FIXME - media_type=image?
if($sql->db_Select_gen($qry))
{

View File

@@ -39,7 +39,7 @@ if($scaction == 'select' || $scaction == 'all')
foreach($paths as $pths)
{
$imagelist[$tp->createConstants($pths, 'mix')]= $fl->get_files($pths,'\.jpg|\.gif|\.png|\.JPG|\.GIF|\.PNG|\.jpeg|\.JPEG|\.tif|\.TIF|\.tiff|\.TIFF', 'standard', $recurse);
$imagelist[$tp->createConstants($pths, 'mix')]= $fl->get_files($pths,'\.jpg|\.gif|\.png|\.JPG|\.GIF|\.PNG|\.jpeg|\.JPEG|\.svg|\.SVG', 'standard', $recurse);
}