1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Never hide file contents if they have comments.

Summary:
Links to comments were not working because file was hidden after it was deleted.

Test Plan:
Tested that comment anchors were working correctly for deleted files.
Tested that generated files were still hidden.

Reviewed By: epriestley
Reviewers: epriestley
CC: jungejason, aran, epriestley
Differential Revision: 257
This commit is contained in:
tuomaspelkonen 2011-05-09 17:47:12 -07:00
parent e313b1d64a
commit d5dfa5faf5

View file

@ -816,7 +816,7 @@ EOSYNTHETIC;
}
$shield = null;
if ($range_start === null && $range_len === null) {
if ($range_start === null && $range_len === null && !$this->comments) {
if ($this->isGenerated()) {
$shield = $this->renderShield(
"This file contains generated code, which does not normally need ".