diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-04-13 23:57:55 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-04-13 23:57:55 +0000 |
commit | 1d02741910e961986c67216f98b97fce1c315312 (patch) | |
tree | a2351950d06e2b75978d5d72b0e9c56476b877d1 /include/functions_url.inc.php | |
parent | ee399d727d38f1607b708aa941ba4bdd44e12c9e (diff) |
flat view small improvements (picture page on root category sorter urls and works in several cases)
correction in permalinks admin (error was assignment in if instead of comparison)
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1955 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_url.inc.php | 4 |
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; |