Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16795
Modified Files:
serendipity_functions_images.inc.php
Log Message:
Make sure that the extra parameters follow the image selector screens
when coosing an image for the category.
Index: serendipity_functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_images.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- serendipity_functions_images.inc.php 25 May 2004 16:16:14 -0000 1.12
+++ serendipity_functions_images.inc.php 8 Jun 2004 14:49:27 -0000 1.13
@@ -588,6 +588,14 @@
serendipity_uploadSecure($serendipity['GET']['only_path'], true);
}
+ if (isset($serendipity['GET']['htmltarget'])) {
+ $extraParems .= 'serendipity[htmltarget]='. $serendipity['GET']['htmltarget'] .'&';
+ }
+
+ if (isset($serendipity['GET']['filename_only'])) {
+ $extraParems .= 'serendipity[filename_only]='. $serendipity['GET']['filename_only'] .'&';
+ }
+
$left = '<input type="button" value="<<<" onclick="location.href=\'?'. $extraParems .'serendipity[start]=' . ($start-$end) . '\';" '. (($start <= 0) ? 'disabled' : '') .'>' . "\n";
$right = '<input type="button" value=">>>" onclick="location.href=\'?'. $extraParems .'serendipity[start]=' . ($start+$end) . '\';" '. (($totalImages < $start+$end) ? 'disabled' : '') .'>' . "\n";
@@ -878,4 +886,4 @@
return true;
}
-?>
\ No newline at end of file
+?>
|