Ignore:
Timestamp:
Mar 8, 2007, 2:55:49 AM (17 years ago)
Author:
rvelices
Message:
  • 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
File:
1 edited

Legend:

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

    r1868 r1880  
    414414  global $conf, $user, $page;
    415415
     416  $do_log = true;
    416417  if (!$conf['log'])
    417418  {
    418     return false;
    419   }
    420 
     419    $do_log = false;
     420  }
    421421  if (is_admin() and !$conf['history_admin'])
    422422  {
    423     return false;
    424   }
    425 
     423    $do_log = false;
     424  }
    426425  if ($user['is_the_guest'] and !$conf['history_guest'])
     426  {
     427    $do_log = false;
     428  }
     429
     430  $do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type);
     431 
     432  if (!$do_log)
    427433  {
    428434    return false;
Note: See TracChangeset for help on using the changeset viewer.