Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEditorSetting.php
Show All 36 Lines | return pht( | ||||
"\n\n". | "\n\n". | ||||
"See the tables below for a list of supported variables and protocols.", | "See the tables below for a list of supported variables and protocols.", | ||||
'txmt://open/?url=file:///Users/alincoln/editor_links/%n/%f&line=%l', | 'txmt://open/?url=file:///Users/alincoln/editor_links/%n/%f&line=%l', | ||||
PhabricatorEnv::getDoclink('User Guide: Configuring an External Editor'), | PhabricatorEnv::getDoclink('User Guide: Configuring an External Editor'), | ||||
pht('User Guide: Configuring an External Editor')); | pht('User Guide: Configuring an External Editor')); | ||||
} | } | ||||
public function validateTransactionValue($value) { | public function validateTransactionValue($value) { | ||||
if (!strlen($value)) { | if (!phutil_nonempty_string($value)) { | ||||
return; | return; | ||||
} | } | ||||
id(new PhabricatorEditorURIEngine()) | id(new PhabricatorEditorURIEngine()) | ||||
->setPattern($value) | ->setPattern($value) | ||||
->validatePattern(); | ->validatePattern(); | ||||
} | } | ||||
} | } |