Changeset 3167

Show
Ignore:
Timestamp:
03/03/09 02:39:48 (4 years ago)
Author:
rvelices
Message:

small code refactor - group together some code that should be together

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/section_init.inc.php

    r3108 r3167  
    109109    else 
    110110    { 
     111      $page['image_id'] = 0; // more work in picture.php 
    111112      if ( !empty($matches[2]) ) 
    112113      { 
     
    563564} 
    564565 
    565 if (script_basename() == 'picture' 
    566     and !isset($page['image_id']) ) 
    567 { 
    568   $page['image_id'] = 0; // more work in picture.php 
    569 } 
    570  
    571566// add meta robots noindex, nofollow to avoid unnecesary robot crawls 
    572567$page['meta_robots']=array(); 
  • trunk/picture.php

    r3122 r3167  
    501501} 
    502502 
    503 $url_admin = 
    504   get_root_url().'admin.php?page=picture_modify' 
    505   .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '') 
    506   .'&image_id='.$page['image_id'] 
    507 ; 
    508  
    509503$slideshow_params = array(); 
    510504$slideshow_url_params = array(); 
     
    714708  } 
    715709 
     710  $url_admin = 
     711    get_root_url().'admin.php?page=picture_modify' 
     712    .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '') 
     713    .'&image_id='.$page['image_id']; 
     714 
    716715  $template->assign( 
    717716    array( 
     
    722721      ) 
    723722    ); 
     723 
     724  $template->assign('available_permission_levels', $conf['available_permission_levels']); 
    724725} 
    725726 
     
    930931$template->assign( 'ELEMENT_CONTENT', $element_content ); 
    931932 
    932 if (is_admin()) 
    933 { 
    934   $template->assign('available_permission_levels', $conf['available_permission_levels']); 
    935 } 
     933 
    936934// +-----------------------------------------------------------------------+ 
    937935// |                               sub pages                               |