Ignore:
Timestamp:
Jul 23, 2012, 6:16:34 PM (12 years ago)
Author:
mistic100
Message:

add option to block permissions recalculation

File:
1 edited

Legend:

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

    r16654 r16939  
    88    'update_on_upload' => false,
    99    'show_list_messages' => true,
     10    'smart_is_forbidden' => true,
    1011    )));
    1112
     
    3738    conf_update_param('SmartAlbums', smart_default_config);
    3839  }
     40  else
     41  {
     42    $new_conf = unserialize($conf['SmartAlbums']);
     43    // new param in 2.0.2
     44    if (!isset($new_conf['smart_is_forbidden']))
     45    {
     46      $new_conf['smart_is_forbidden'] = true;
     47      conf_update_param('SmartAlbums', smart_default_config);
     48    }
     49  }
    3950 
    40   /* some filters renamed in 1.2 */
     51  // some filters renamed in 2.0
    4152  $name_changes = array(
    4253    'the' => 'the_post',
Note: See TracChangeset for help on using the changeset viewer.