}
)
)
+ ->addProcessor(
+ new CustomFormDataProcessor(
+ 'lastModificationTime',
+ static function (IFormDocument $document, array $parameters) {
+ $parameters['data']['lastModificationTime'] = TIME_NOW;
+
+ return $parameters;
+ }
+ )
+ )
->addProcessor(new VoidFormDataProcessor('copy'))
->addProcessor(new VoidFormDataProcessor('templateSource'));
namespace wcf\data\template;
use wcf\data\DatabaseObjectEditor;
-use wcf\system\io\File;
use wcf\system\Regex;
use wcf\system\WCF;
use wcf\util\DirectoryUtil;
if (!isset($parameters['packageID'])) {
$parameters['packageID'] = PACKAGE_ID;
}
- if (!isset($parameters['lastModificationTime'])) {
- $parameters['lastModificationTime'] = TIME_NOW;
- }
/** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);