Changeset 15299 for trunk/picture.php
- Timestamp:
- May 25, 2012, 1:12:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r13865 r15299 150 150 function default_picture_content($content, $element_info) 151 151 { 152 global $conf; 153 152 154 if ( !empty($content) ) 153 155 {// someone hooked us - so we skip; … … 163 165 setcookie('picture_deriv', false, 0, cookie_path() ); 164 166 } 165 $deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE);167 $deriv_type = pwg_get_session_var('picture_deriv', $conf['derivative_default_size']); 166 168 $selected_derivative = $element_info['derivatives'][$deriv_type]; 167 169 … … 939 941 and strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome/') === false) 940 942 { 941 $template->assign('U_PREFETCH', $picture['next']['derivatives'][pwg_get_session_var('picture_deriv', IMG_LARGE)]->get_url() ); 942 } 943 944 $template->assign('U_CANONICAL', make_picture_url( array('image_id'=>$picture['current']['id'], 'image_file'=>$picture['current']['file']) ) ); 943 $template->assign( 944 'U_PREFETCH', 945 $picture['next']['derivatives'][pwg_get_session_var('picture_deriv', $conf['derivative_default_size'])]->get_url() 946 ); 947 } 948 949 $template->assign( 950 'U_CANONICAL', 951 make_picture_url( 952 array( 953 'image_id' => $picture['current']['id'], 954 'image_file' => $picture['current']['file']) 955 ) 956 ); 945 957 946 958 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.