From: <ma...@us...> - 2011-12-29 17:55:23
|
Revision: 8622 http://xoops.svn.sourceforge.net/xoops/?rev=8622&view=rev Author: mageg Date: 2011-12-29 17:55:17 +0000 (Thu, 29 Dec 2011) Log Message: ----------- add .swf in getImgListAsArray Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslists.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslists.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslists.php 2011-12-29 17:52:42 UTC (rev 8621) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslists.php 2011-12-29 17:55:17 UTC (rev 8622) @@ -159,7 +159,7 @@ $filelist = array(); if ($handle = opendir($dirname)) { while (false !== ($file = readdir($handle))) { - if (preg_match('/(\.gif|\.jpg|\.png)$/i', $file)) { + if (preg_match('/(\.gif|\.jpg|\.png|\.swf)$/i', $file)) { $file = $prefix . $file; $filelist[$file] = $file; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |