Changeset 1955 for branches/branch-1_7
- Timestamp:
- Apr 14, 2007, 1:57:55 AM (18 years ago)
- Location:
- branches/branch-1_7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/admin/permalinks.php
r1900 r1955 138 138 } 139 139 140 if ( !count($sort_by) or $sort_by[0]= 'name')140 if ( !count($sort_by) or $sort_by[0]=='name') 141 141 { 142 142 usort($categories, 'global_rank_compare'); -
branches/branch-1_7/include/functions_url.inc.php
r1900 r1955 247 247 $url .= $params['image_id']; 248 248 } 249 if ( !isset($params['category'] ) ) 250 {// make urls shorter ... 251 unset( $params['flat'] ); 252 } 249 253 $url .= make_section_in_url($params); 250 254 $url = add_well_known_params_in_url($url, $params); -
branches/branch-1_7/include/section_init.inc.php
r1949 r1955 141 141 if ( strpos($tokens[$next_token], 'created-')!==0 142 142 and strpos($tokens[$next_token], 'posted-')!==0 143 and strpos($tokens[$next_token], 'start-')!==0 143 144 and $tokens[$next_token] != 'flat') 144 145 {// try a permalink … … 160 161 $next_token++; 161 162 } 162 } 163 elseif ( script_basename()=='picture' ) 164 { //access a picture only by id, file or id-file without given section 165 $page['flat']=true; 166 } 167 } 168 } 169 elseif ( script_basename()=='picture' ) 170 { //access a picture only by id, file or id-file without given section 171 $page['flat']=true; 163 172 } 164 173 } … … 315 324 316 325 if ('categories' == $page['section'] and 317 'flat' == $tokens[$i]) 326 'flat' == $tokens[$i] and 327 !isset($page['chronology_field']) ) 318 328 { 319 329 // indicate a special list of images … … 341 351 $page['chronology_date'] = $chronology_tokens; 342 352 } 353 unset($page['flat']); 343 354 } 344 355
Note: See TracChangeset
for help on using the changeset viewer.