Changeset 1956 for trunk/include/section_init.inc.php
- Timestamp:
- Apr 14, 2007, 1:58:28 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/section_init.inc.php
r1950 r1956 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 345 356 $i++; 346 357 } 347 348 358 349 359 // $page['nb_image_page'] is the number of picture to display on this page
Note: See TracChangeset
for help on using the changeset viewer.