Ignore:
Timestamp:
Sep 22, 2012, 11:46:42 AM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/maintain.inc.php

    r17503 r18127  
    5959 function plugin_deactivate(){
    6060 global $conf ;
     61 
    6162 if (isset($conf['cl_derivatives_sav']))  {   
    6263    $arr = @unserialize($conf['cl_derivatives_sav']);         
    6364      if(isset($arr['d'])){
     65      $conf['derivatives'] = $conf['cl_derivatives_sav'];
    6466        $query = '
    6567                UPDATE '.CONFIG_TABLE.'
     
    7274     pwg_query($q);
    7375       }
    74     }     
     76    }   
     77      $model= $conf['derivative_default_size'];
     78      $_COOKIE  ['picture_deriv'] = $model;
     79      $_COOKIE ['picture_map'] = $model;
     80      pwg_set_session_var('picture_deriv', $model);
     81   
    7582 }
    7683
Note: See TracChangeset for help on using the changeset viewer.