mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Minor inconsistencies in image shortcodes
This commit is contained in:
parent
104bed623b
commit
fc04350895
@ -60,7 +60,7 @@ function imageselector_shortcode($parm = '', $mod = '')
|
||||
$recurse = ($subdirs) ? $subdirs : 0;
|
||||
foreach ($paths as $pths)
|
||||
{
|
||||
$imagelist[$tp->createConstants($pths, 'mix')] = $fl->get_files($pths, '\.jpg|\.gif|\.png|\.JPG|\.GIF|\.PNG', 'standard', $recurse);
|
||||
$imagelist[$tp->createConstants($pths, 'mix')] = $fl->get_files($pths, '\.jpg|\.gif|\.png|\.JPG|\.GIF|\.PNG|\.jpeg|\.JPEG|\.svn|\.SVN', 'standard', $recurse);
|
||||
}
|
||||
|
||||
if (!$fullpath && (count($paths) > 1))
|
||||
|
@ -73,7 +73,7 @@ if($scaction == 'select' || $scaction == 'all')
|
||||
{
|
||||
$dir = str_replace($paths,"",$icon['path']);
|
||||
|
||||
if(!$filter || ($filter && ereg($filter,$dir.$icon['fname'])))
|
||||
if (!$filter || ($filter && preg_match('~'.$filter.'~', $dir.$icon['fname'])))
|
||||
{
|
||||
|
||||
$pth = ($fullpath) ? $tp->createConstants($icon['path'],'rel') : $dir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user