File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,5 +38,11 @@ public function init(
3838 );
3939 $ contribute [Component \Resource \PublicAsset::class] = fn () =>
4040 new Component \Resource \ComponentJS ($ this , "authority.js " );
41+
42+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
43+ new \ilCronUpdateOrgUnitPaths (
44+ 'components \\' . self ::class,
45+ $ use [\ILIAS \Language \Language::class]
46+ );
4147 }
4248}
Original file line number Diff line number Diff line change 2626class ilCronUpdateOrgUnitPaths extends ilCronJob
2727{
2828 public const ID = "orgunit_paths " ;
29- protected ilDBInterface $ db ;
30- protected ilLogger $ log ;
31- protected ilTree $ tree ;
32-
33- private ilLanguage $ lng ;
34-
35- public function __construct ()
36- {
37- global $ DIC ;
38-
39- $ this ->lng = $ DIC ->language ();
40- }
4129
4230 public function getId (): string
4331 {
Original file line number Diff line number Diff line change 2323 <pluginslots >
2424 <pluginslot id =" orguext" name =" OrgUnitExtension" />
2525 </pluginslots >
26- <crons >
27- <cron id =" orgunit_paths" class =" ilCronUpdateOrgUnitPaths" />
28- </crons >
29- </module >
26+ </module >
You can’t perform that action at this time.
0 commit comments