mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
- plugin administration: small fix during activation phase
- plugins: added 3 actions in category_cats.inc.php and 1 event that allow a plugin to decide if insertion to #history occurs - added a warning in section_init if script_basename() is not index or picture (I think we'll have issues on some servers with this function) - web service methods categories.getImages, tags.getImages and images.search return now the image comment git-svn-id: http://piwigo.org/svn/trunk@1880 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -413,17 +413,23 @@ function pwg_log($image_id = null, $image_type = null)
|
||||
{
|
||||
global $conf, $user, $page;
|
||||
|
||||
$do_log = true;
|
||||
if (!$conf['log'])
|
||||
{
|
||||
return false;
|
||||
$do_log = false;
|
||||
}
|
||||
|
||||
if (is_admin() and !$conf['history_admin'])
|
||||
{
|
||||
return false;
|
||||
$do_log = false;
|
||||
}
|
||||
if ($user['is_the_guest'] and !$conf['history_guest'])
|
||||
{
|
||||
$do_log = false;
|
||||
}
|
||||
|
||||
if ($user['is_the_guest'] and !$conf['history_guest'])
|
||||
$do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type);
|
||||
|
||||
if (!$do_log)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user