mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
PHP 5.3+(and NOT 3+ as stated in the previous commit :) ) overall system compatibility
This commit is contained in:
@@ -98,7 +98,7 @@ function imageselector_shortcode($parm = '', $mod = '')
|
||||
{
|
||||
$dir = str_replace($paths, "", $icon['path']);
|
||||
|
||||
if (!$filter || ($filter && ereg($filter, $dir.$icon['fname'])))
|
||||
if (!$filter || ($filter && preg_match('~'.$filter.'~', $dir.$icon['fname'])))
|
||||
{
|
||||
$pth = $dir;
|
||||
if($fullpath)
|
||||
|
Reference in New Issue
Block a user