Changeset 31605


Ignore:
Timestamp:
Jul 6, 2016, 9:18:08 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - Photo_add_by - bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Photo_add_by/maintain.class.php

    r31465 r31605  
    3232  function install($plugin_version, &$errors=array())
    3333  {
     34 
    3435   
    3536  }
     
    3738  function activate($plugin_version, &$errors=array())
    3839  {
    39  
     40      global $conf;
     41   
     42    if (!isset($conf['Photo_add_by'])){
     43        conf_update_param('Photo_add_by', 'Categories',true);
     44    }
     45    if (!isset($conf['Photo_add_by_show'])){
     46        conf_update_param('Photo_add_by_show',0,true);
     47    }
    4048  }
    4149
Note: See TracChangeset for help on using the changeset viewer.