@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.

Link to a specific Phabricator version from stack trace

Summary: Line numbers and file paths may be different in current version.

Test Plan: Disabled editor, issued exception, clicked on the link.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2886

vrana b10428fe 46008ce3

+6
+6
src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
··· 630 630 631 631 $libraries = PhutilBootloader::getInstance()->getAllLibraries(); 632 632 633 + $version = PhabricatorEnv::getEnvConfig('phabricator.version'); 634 + if (preg_match('/[^a-f0-9]/i', $version)) { 635 + $version = ''; 636 + } 637 + 633 638 // TODO: Make this configurable? 634 639 $path = 'https://secure.phabricator.com/diffusion/%s/browse/master/src/'; 635 640 ··· 676 681 if (empty($attrs['href'])) { 677 682 $attrs['href'] = sprintf($path, $callsigns[$lib]). 678 683 str_replace(DIRECTORY_SEPARATOR, '/', $relative). 684 + ($version && $lib == 'phabricator' ? ';'.$version : ''). 679 685 '$'.$part['line']; 680 686 $attrs['target'] = '_blank'; 681 687 }