Skip to content

Commit f0aefdc

Browse files
authored
Make wcfDir available in template
1 parent 4d04be1 commit f0aefdc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

wcfsetup/install/files/lib/acp/page/DevtoolsProjectListPage.class.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use wcf\data\devtools\project\DevtoolsProjectList;
66
use wcf\page\SortablePage;
7+
use wcf\system\WCF;
78

89
/**
910
* Shows a list of devtools projects.
@@ -51,4 +52,13 @@ class DevtoolsProjectListPage extends SortablePage
5152
* @inheritDoc
5253
*/
5354
public $validSortFields = ['projectID', 'name', 'path'];
55+
56+
#[\Override]
57+
public function assignVariables() {
58+
parent::assignVariables();
59+
60+
WCF::getTPL()->assign([
61+
'wcfDir' => WCF_DIR,
62+
]);
63+
}
5464
}

0 commit comments

Comments
 (0)