From 49679a6b7958070488802a55e7e75ee5daf00e9d Mon Sep 17 00:00:00 2001 From: Debarghya Das Date: Sat, 19 Jan 2013 17:07:18 -0800 Subject: [PATCH] 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 --- .../controller/PhabricatorConfigAllController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/applications/config/controller/PhabricatorConfigAllController.php b/src/applications/config/controller/PhabricatorConfigAllController.php index 6fd2fd9bb7..e5bbc7552a 100644 --- a/src/applications/config/controller/PhabricatorConfigAllController.php +++ b/src/applications/config/controller/PhabricatorConfigAllController.php @@ -68,8 +68,14 @@ final class PhabricatorConfigAllController $display_version = pht('Unknown'); } $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->selectFilter('all/');