1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00

Unuse short ternary operator

Summary: We still support PHP 5.2.

Test Plan:
  $ arc lint

Reviewers: nh, epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D3503
This commit is contained in:
vrana 2012-09-17 11:44:03 -07:00
parent 8e7ae7b33a
commit cfea1d29ee

View file

@ -75,6 +75,8 @@ EXAMPLE;
$font_default = PhabricatorEnv::getEnvConfig('style.monospace'); $font_default = PhabricatorEnv::getEnvConfig('style.monospace');
$font_default = phutil_escape_html($font_default); $font_default = phutil_escape_html($font_default);
$pref_symbols_value = $preferences->getPreference($pref_symbols);
$form = id(new AphrontFormView()) $form = id(new AphrontFormView())
->setUser($user) ->setUser($user)
->appendChild( ->appendChild(
@ -117,7 +119,7 @@ EXAMPLE;
id(new AphrontFormRadioButtonControl()) id(new AphrontFormRadioButtonControl())
->setLabel('Symbol Links') ->setLabel('Symbol Links')
->setName($pref_symbols) ->setName($pref_symbols)
->setValue($preferences->getPreference($pref_symbols) ?: 'enabled') ->setValue($pref_symbols_value ? $pref_symbols_value : 'enabled')
->addButton('enabled', 'Enabled (default)', ->addButton('enabled', 'Enabled (default)',
'Use this setting to disable linking symbol names in Differential '. 'Use this setting to disable linking symbol names in Differential '.
'and Diffusion to their definitions. This is enabled by default.') 'and Diffusion to their definitions. This is enabled by default.')