@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<?php
2
3final class PhabricatorUnknownContentSource
4 extends PhabricatorContentSource {
5
6 const SOURCECONST = 'unknown';
7
8 public function getSourceName() {
9 $source = $this->getSource();
10 if ($source) {
11 return pht('Unknown ("%s")', $source);
12 } else {
13 return pht('Unknown');
14 }
15 }
16
17 public function getSourceDescription() {
18 return pht('Content with no known source.');
19 }
20
21}