mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00
- action.php makes use of Last-Modified and If-Modified-Since HTTP headers
- renamed $conf['disble_plugins'] to $conf['enable_plugins'] git-svn-id: http://piwigo.org/svn/trunk@1616 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a557904d2a
commit
f3db3ef388
3 changed files with 51 additions and 17 deletions
|
@ -243,16 +243,14 @@ function load_plugin($plugin)
|
|||
function load_plugins()
|
||||
{
|
||||
global $conf;
|
||||
if ($conf['disable_plugins'])
|
||||
if ($conf['enable_plugins'])
|
||||
{
|
||||
return;
|
||||
$plugins = get_db_plugins('active');
|
||||
foreach( $plugins as $plugin)
|
||||
{// include main from a function to avoid using same function context
|
||||
load_plugin($plugin);
|
||||
}
|
||||
trigger_action('plugins_loaded');
|
||||
}
|
||||
|
||||
$plugins = get_db_plugins('active');
|
||||
foreach( $plugins as $plugin)
|
||||
{// include main from a function to avoid using same function context
|
||||
load_plugin($plugin);
|
||||
}
|
||||
trigger_action('plugins_loaded');
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue