Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31847/include
Modified Files:
functions_images.inc.php
Log Message:
* make HTTP host autodetectable easier
* allow to configure amount of comments to display
Index: functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_images.inc.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- functions_images.inc.php 15 Feb 2005 23:34:45 -0000 1.33
+++ functions_images.inc.php 17 Feb 2005 17:05:31 -0000 1.34
@@ -1077,7 +1077,15 @@
if ( $file != '.' && $file != '..' ) {
if ( $onlyDirs === true && is_dir($basedir . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR . $file) ) {
if ( is_null($pattern) || preg_match($pattern, $file) ) {
- $files[] = array('name' => $file, 'depth' => $depth, 'relpath' => ltrim($dir, DIRECTORY_SEPARATOR) . basename($file) . DIRECTORY_SEPARATOR);
+ $files[] = array(
+ 'name' => $file,
+ 'depth' => $depth,
+ 'relpath' => str_replace(
+ DIRECTORY_SEPARATOR,
+ '/',
+ ltrim($dir, DIRECTORY_SEPARATOR) . basename($file) . DIRECTORY_SEPARATOR
+ )
+ );
}
}
if ( is_dir($basedir . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR . $file) ) {
|