Changeset 21779


Ignore:
Timestamp:
03/22/13 10:18:08 (6 years ago)
Author:
patdenice
Message:

Correct image size in smartpocket with GThumb+ activated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/smartpocket/themeconf.inc.php

    r21098 r21779  
    3939 
    4040// Get better derive parameters for screen size 
     41$type = IMG_LARGE; 
    4142if (!empty($_COOKIE['screen_size'])) 
    4243{ 
     
    4445  $derivative_params = new ImageStdParams; 
    4546  $derivative_params->load_from_db(); 
    46   $type = IMG_LARGE; 
    4747 
    4848  foreach ($derivative_params->get_all_type_map() as $type => $map) 
     
    5151      break; 
    5252  } 
    53   pwg_set_session_var('sp_picture_deriv', $type); 
    5453} 
    5554 
    56 $this->assign('picture_derivative_params', ImageStdParams::get_by_type(pwg_get_session_var('sp_picture_deriv', IMG_LARGE))); 
     55$this->assign('picture_derivative_params', ImageStdParams::get_by_type($type)); 
    5756$this->assign('thumbnail_derivative_params', ImageStdParams::get_by_type(IMG_SQUARE)); 
    5857 
Note: See TracChangeset for help on using the changeset viewer.