mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 10:28:31 +02:00
- Add blacklisting so plugin scan will skip certain files or directories
- Add caching to plugin scan, default is to rescan once a day - Remove lingering unneeded requires
This commit is contained in:
@ -137,8 +137,7 @@
|
||||
exit(INVALID_OPTION);
|
||||
}
|
||||
|
||||
require_once('inc/class.definition.inc.php');
|
||||
$definition = new definition($definition);
|
||||
$definition = new importexport_definition($definition);
|
||||
if( $definition->get_identifier() < 1 ) {
|
||||
fwrite(STDERR,"importexport_cli: Definition not found! \n");
|
||||
exit(INVALID_OPTION);
|
||||
@ -149,8 +148,6 @@
|
||||
$definition->plugin_options['dry_run'] = $dryrun;
|
||||
$type = $definition->type;
|
||||
|
||||
|
||||
require_once("$path_to_egroupware/$definition->application/importexport/class.$definition->plugin.inc.php");
|
||||
$po = new $definition->plugin;
|
||||
|
||||
$resource = fopen( $file, 'r' );
|
||||
|
Reference in New Issue
Block a user