Add comment as to why conventional plugin triggers not used.
This commit is contained in:
parent
6bb1859faf
commit
6d25151c78
@ -82,6 +82,9 @@ class Import extends Module {
|
||||
$contains['photos'] = false;
|
||||
$contains['albums'] = false;
|
||||
|
||||
# Invoke plugins directly, as instance method not valid here
|
||||
# Note that updated albumId and path explicitly passed, rather
|
||||
# than using func_get_args() which will only return original ones
|
||||
$plugins->activate(__METHOD__ . ":before", array($albumID, $path));
|
||||
|
||||
# Get all files
|
||||
@ -135,6 +138,9 @@ class Import extends Module {
|
||||
|
||||
}
|
||||
|
||||
# Invoke plugins directly, as instance method not valid here
|
||||
# Note that updated albumId and path explicitly passed, rather
|
||||
# than using func_get_args() which will only return original ones
|
||||
$plugins->activate(__METHOD__ . ":after", array($albumID, $path));
|
||||
|
||||
if ($contains['photos']===false&&$contains['albums']===false) return 'Warning: Folder empty or no readable files to process!';
|
||||
|
Loading…
Reference in New Issue
Block a user