Page MenuHomePhorge

D25181.1734991858.diff
No OneTemporary

D25181.1734991858.diff

diff --git a/src/applications/config/option/PhabricatorConfigOption.php b/src/applications/config/option/PhabricatorConfigOption.php
--- a/src/applications/config/option/PhabricatorConfigOption.php
+++ b/src/applications/config/option/PhabricatorConfigOption.php
@@ -156,11 +156,22 @@
return $this->summary;
}
+ /**
+ * Set the human Description of this Config
+ *
+ * @param string|null $description Description as raw Remarkup
+ * @return self
+ */
public function setDescription($description) {
$this->description = $description;
return $this;
}
+ /**
+ * Get the human Description of this Config
+ *
+ * @return string|null Description as raw Remarkup
+ */
public function getDescription() {
return $this->description;
}
@@ -205,7 +216,7 @@
public function newDescriptionRemarkupView(PhabricatorUser $viewer) {
$description = $this->getDescription();
- if (!strlen($description)) {
+ if (!phutil_nonempty_string($description)) {
return null;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 22:10 (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027130
Default Alt Text
D25181.1734991858.diff (1 KB)

Event Timeline