Page MenuHomePhorge

D25190.1732023780.diff
No OneTemporary

D25190.1732023780.diff

diff --git a/src/infrastructure/contentsource/PhabricatorContentSource.php b/src/infrastructure/contentsource/PhabricatorContentSource.php
--- a/src/infrastructure/contentsource/PhabricatorContentSource.php
+++ b/src/infrastructure/contentsource/PhabricatorContentSource.php
@@ -81,6 +81,13 @@
));
}
+ /**
+ * Get the internal source name
+ *
+ * This is usually coming from a SOURCECONST constant.
+ *
+ * @return string|null
+ */
final public function getSource() {
return $this->source;
}
diff --git a/src/infrastructure/contentsource/PhabricatorUnknownContentSource.php b/src/infrastructure/contentsource/PhabricatorUnknownContentSource.php
--- a/src/infrastructure/contentsource/PhabricatorUnknownContentSource.php
+++ b/src/infrastructure/contentsource/PhabricatorUnknownContentSource.php
@@ -7,7 +7,7 @@
public function getSourceName() {
$source = $this->getSource();
- if (strlen($source)) {
+ if ($source) {
return pht('Unknown ("%s")', $source);
} else {
return pht('Unknown');

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 13:43 (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
977776
Default Alt Text
D25190.1732023780.diff (1 KB)

Event Timeline