Skip to content

Commit 2deb923

Browse files
committed
Show the path to the installation when scanning for projects
Closes #6515
1 parent 615c005 commit 2deb923

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<dl>
9696
<dt>{lang}wcf.acp.devtools.project.quickSetup.path{/lang}</dt>
9797
<dd>
98-
<input type="text" name="projectQuickSetupPath" id="projectQuickSetupPath" class="long" />
98+
<input type="text" name="projectQuickSetupPath" id="projectQuickSetupPath" class="long" placeholder="{$projectQuickSetupPathPlaceholder}">
9999
<small>{lang}wcf.acp.devtools.project.quickSetup.path.description{/lang}</small>
100100
</dd>
101101
</dl>

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

Lines changed: 11 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,14 @@ class DevtoolsProjectListPage extends SortablePage
5152
* @inheritDoc
5253
*/
5354
public $validSortFields = ['projectID', 'name', 'path'];
55+
56+
#[\Override]
57+
public function assignVariables()
58+
{
59+
parent::assignVariables();
60+
61+
WCF::getTPL()->assign([
62+
'projectQuickSetupPathPlaceholder' => \WCF_DIR,
63+
]);
64+
}
5465
}

0 commit comments

Comments
 (0)