Changeset 23372


Ignore:
Timestamp:
Jun 19, 2013, 5:21:12 PM (11 years ago)
Author:
mistic100
Message:

Add trigger "load_conf" at the end of load_conf_from_db()
not usable for the first call in common.inc.php (plugins not loaded)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r22729 r23372  
    10211021    $conf[ $row['param'] ] = $val;
    10221022  }
     1023 
     1024  trigger_action('load_conf', $condition);
    10231025}
    10241026
  • trunk/tools/triggers_list.php

    r23210 r23372  
    244244  'vars' => array('bool', 'full'),
    245245  'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
     246),
     247array(
     248  'name' => 'load_conf',
     249  'type' => 'trigger_action',
     250  'vars' => array('string', 'condition'),
     251  'files' => array('include\functions.inc.php (load_conf_from_db)'),
     252  'infos' => 'New in 2.6. <b>Warning:</b> you can\'t trigger the first call done une common.inc.php. Use <i>init</i> instead.',
    246253),
    247254array(
Note: See TracChangeset for help on using the changeset viewer.