1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Added Local Version Property to /config/all

Summary: Fixed T2349

Test Plan: Temporarily added a VERSION file with some text and it rendered it correctly.

Reviewers: epriestley

CC: aran, Korvin

Maniphest Tasks: T2349

Differential Revision: https://secure.phabricator.com/D4544
This commit is contained in:
Debarghya Das 2013-01-19 17:07:18 -08:00 committed by epriestley
parent f0682941b6
commit 49679a6b79

View file

@ -68,8 +68,14 @@ final class PhabricatorConfigAllController
$display_version = pht('Unknown'); $display_version = pht('Unknown');
} }
$version_property_list = id(new PhabricatorPropertyListView()); $version_property_list = id(new PhabricatorPropertyListView());
$version_property_list->addProperty('Version', $display_version); $version_property_list->addProperty('Version',
phutil_escape_html($display_version));
$version_path = $phabricator_root.'/conf/local/VERSION';
if (Filesystem::pathExists($version_path)) {
$version_from_file = Filesystem::readFile($version_path);
$version_property_list->addProperty('Local Version',
phutil_escape_html($version_from_file));
}
$nav = $this->buildSideNavView(); $nav = $this->buildSideNavView();
$nav->selectFilter('all/'); $nav->selectFilter('all/');