mirror of
https://github.com/e107inc/e107.git
synced 2025-09-03 03:13:34 +02:00
Error fixes
This commit is contained in:
@@ -94,15 +94,17 @@ function imageselector_shortcode($parm = '', $mod = '')
|
||||
else
|
||||
{
|
||||
$icons = multiarray_sort($icons, 'fname');
|
||||
|
||||
|
||||
foreach ($icons as $icon)
|
||||
{
|
||||
$dir = str_replace($paths, "", $icon['path']);
|
||||
$dir = str_replace($paths, "", $icon['path']);
|
||||
// echo "dir=".$icon['path'];
|
||||
|
||||
if (!$filter || ($filter && preg_match('~'.$filter.'~', $dir.$icon['fname'])))
|
||||
{
|
||||
$pth = $dir;
|
||||
if($fullpath)
|
||||
|
||||
// if($fullpath) // returns nothing if fullpath is FALSE;
|
||||
{
|
||||
if(!vartrue($parms['media']))
|
||||
{
|
||||
@@ -110,6 +112,7 @@ function imageselector_shortcode($parm = '', $mod = '')
|
||||
$_value = $pth.$icon['fname'];
|
||||
$_label = $dir.$icon['fname'];
|
||||
$selected = ($default == $_value || $pth.$default == $_value) ? " selected='selected'" : "";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user