1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-03 03:13:34 +02:00

Error fixes

This commit is contained in:
CaMer0n
2011-07-10 23:21:09 +00:00
parent 695dbdfa32
commit 4b3703278c
7 changed files with 24 additions and 38 deletions

View File

@@ -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
{