osticket-plugin-archiver icon indicating copy to clipboard operation
osticket-plugin-archiver copied to clipboard

osTicket 1.16

Open atagmester opened this issue 3 years ago • 0 comments

Two little modification required to get it work.

In class.ArchiverPlugin.php You have to add '&$errors' argument to the function, like this:

function uninstall(&$errors) {
		//$errors = array ();
		
		// Do we send an email to the admin telling him about the space used by the archive?
		global $ost;
		$ost->alertAdmin ( 'Plugin: Archiver has been uninstalled', 'Please note, the archive directory has not been deleted, however the configuration for the plugin has been.', true );
		
		parent::uninstall ( $errors );
	}

In config.php You only have to reference to $config (with &)

function pre_save(&$config, &$errors) {
		
		// Delete mode doesn't actually need any of this:

That's it, now it should work :)

atagmester avatar Mar 03 '22 03:03 atagmester