aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_url.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_url.inc.php')
-rw-r--r--include/functions_url.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php
index 04e0b32d1..0d81ae6fc 100644
--- a/include/functions_url.inc.php
+++ b/include/functions_url.inc.php
@@ -246,6 +246,10 @@ function make_picture_url($params)
default:
$url .= $params['image_id'];
}
+ if ( !isset($params['category'] ) )
+ {// make urls shorter ...
+ unset( $params['flat'] );
+ }
$url .= make_section_in_url($params);
$url = add_well_known_params_in_url($url, $params);
return $url;