@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Debarghya Das and committed by
epriestley
49679a6b f0682941

+8 -2
+8 -2
src/applications/config/controller/PhabricatorConfigAllController.php
··· 68 68 $display_version = pht('Unknown'); 69 69 } 70 70 $version_property_list = id(new PhabricatorPropertyListView()); 71 - $version_property_list->addProperty('Version', $display_version); 72 - 71 + $version_property_list->addProperty('Version', 72 + phutil_escape_html($display_version)); 73 + $version_path = $phabricator_root.'/conf/local/VERSION'; 74 + if (Filesystem::pathExists($version_path)) { 75 + $version_from_file = Filesystem::readFile($version_path); 76 + $version_property_list->addProperty('Local Version', 77 + phutil_escape_html($version_from_file)); 78 + } 73 79 74 80 $nav = $this->buildSideNavView(); 75 81 $nav->selectFilter('all/');