Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorConfigOption.php
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | final class PhabricatorConfigOption | ||||
} | } | ||||
public function newDescriptionRemarkupView(PhabricatorUser $viewer) { | public function newDescriptionRemarkupView(PhabricatorUser $viewer) { | ||||
$description = $this->getDescription(); | $description = $this->getDescription(); | ||||
if (!strlen($description)) { | if (!strlen($description)) { | ||||
return null; | return null; | ||||
} | } | ||||
// TODO: Some day, we should probably implement this as a real rule. | |||||
$description = preg_replace( | |||||
'/{{([^}]+)}}/', | |||||
'[[/config/edit/\\1/ | \\1]]', | |||||
$description); | |||||
return new PHUIRemarkupView($viewer, $description); | return new PHUIRemarkupView($viewer, $description); | ||||
} | } | ||||
} | } |