1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Minor tweaks to Preferences

Summary:
Get rid of HPHP-only syntax, add a header and width restriction.

Test Plan:
Looked at /preferences/, saved preferences.

Reviewed By: tuomaspelkonen
Reviewers: tuomaspelkonen
CC: tuomaspelkonen
Differential Revision: 92
This commit is contained in:
epriestley 2011-03-31 16:06:51 -07:00
parent 6b8c2d110a
commit d3766cad98
3 changed files with 5 additions and 1 deletions

View file

@ -34,6 +34,6 @@ class PhabricatorUserPreferences extends PhabricatorUserDAO {
}
public function getPreference($key) {
return $this->getPreferences()[$key];
return idx($this->getPreferences(), $key);
}
}

View file

@ -8,5 +8,7 @@
phutil_require_module('phabricator', 'applications/people/storage/base');
phutil_require_module('phutil', 'utils');
phutil_require_source('PhabricatorUserPreferences.php');

View file

@ -87,6 +87,8 @@ EXAMPLE;
->setValue('Save Preferences'));
$panel = new AphrontPanelView();
$panel->setWidth(AphrontPanelView::WIDTH_WIDE);
$panel->setHeader('Phabricator Preferences');
$panel->appendChild($form);
$error_view = null;