use wcf\system\menu\acp\ACPMenu;
use wcf\data\application\ApplicationEditor;
use wcf\data\language\LanguageEditor;
+use wcf\data\option\OptionEditor;
use wcf\data\package\installation\queue\PackageInstallationQueue;
use wcf\data\package\installation\queue\PackageInstallationQueueEditor;
use wcf\data\package\Package;
$this->nodeBuilder->completeNode($node);
// assign next node
- $step->setNode($this->nodeBuilder->getNextNode($node));
+ $node = $this->nodeBuilder->getNextNode($node);
+ $step->setNode($node);
+
+ // update options.inc.php if installation is completed
+ if ($node == '') {
+ OptionEditor::resetCache();
+ }
return $step;
}
<?php
namespace wcf\system\package;
use wcf\system\menu\acp\ACPMenu;
+use wcf\data\option\OptionEditor;
use wcf\data\package\Package;
use wcf\data\package\PackageEditor;
use wcf\data\package\installation\queue\PackageInstallationQueue;
// mark node as completed
$this->nodeBuilder->completeNode($node);
+ $node = $this->nodeBuilder->getNextNode($node);
+
+ // update options.inc.php if uninstallation is completed
+ if ($node == '') {
+ OptionEditor::resetCache();
+ }
// return next node
- return $this->nodeBuilder->getNextNode($node);
+ return $node;
}
/**
$optionEditor->update($data);
}
}
-
- /**
- * @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::cleanup()
- */
- protected function cleanup() {
- OptionEditor::resetCache();
- }
}