mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Minor inconsistencies in image shortcodes
This commit is contained in:
@@ -60,7 +60,7 @@ function imageselector_shortcode($parm = '', $mod = '')
|
|||||||
$recurse = ($subdirs) ? $subdirs : 0;
|
$recurse = ($subdirs) ? $subdirs : 0;
|
||||||
foreach ($paths as $pths)
|
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))
|
if (!$fullpath && (count($paths) > 1))
|
||||||
|
@@ -73,7 +73,7 @@ if($scaction == 'select' || $scaction == 'all')
|
|||||||
{
|
{
|
||||||
$dir = str_replace($paths,"",$icon['path']);
|
$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;
|
$pth = ($fullpath) ? $tp->createConstants($icon['path'],'rel') : $dir;
|
||||||
|
Reference in New Issue
Block a user