mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Rename the _phabricator_time_format
function for consistency
Summary: Ref T5655. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D11187
This commit is contained in:
parent
3c64cb4d0a
commit
78f5253964
2 changed files with 4 additions and 4 deletions
|
@ -3025,7 +3025,6 @@ phutil_register_library_map(array(
|
|||
'UserWhoAmIConduitAPIMethod' => 'applications/people/conduit/UserWhoAmIConduitAPIMethod.php',
|
||||
),
|
||||
'function' => array(
|
||||
'_phabricator_time_format' => 'view/viewutils.php',
|
||||
'celerity_generate_unique_node_id' => 'applications/celerity/api.php',
|
||||
'celerity_get_resource_uri' => 'applications/celerity/api.php',
|
||||
'implode_selected_handle_links' => 'applications/phid/handle/view/render.php',
|
||||
|
@ -3037,6 +3036,7 @@ phutil_register_library_map(array(
|
|||
'phabricator_on_relative_date' => 'view/viewutils.php',
|
||||
'phabricator_relative_date' => 'view/viewutils.php',
|
||||
'phabricator_time' => 'view/viewutils.php',
|
||||
'phabricator_time_format' => 'view/viewutils.php',
|
||||
'phid_get_subtype' => 'applications/phid/utils.php',
|
||||
'phid_get_type' => 'applications/phid/utils.php',
|
||||
'phid_group_by_type' => 'applications/phid/utils.php',
|
||||
|
|
|
@ -38,7 +38,7 @@ function phabricator_time($epoch, $user) {
|
|||
return phabricator_format_local_time(
|
||||
$epoch,
|
||||
$user,
|
||||
_phabricator_time_format($user));
|
||||
phabricator_time_format($user));
|
||||
}
|
||||
|
||||
function phabricator_datetime($epoch, $user) {
|
||||
|
@ -47,10 +47,10 @@ function phabricator_datetime($epoch, $user) {
|
|||
$user,
|
||||
pht('%s, %s',
|
||||
_phutil_date_format($epoch),
|
||||
_phabricator_time_format($user)));
|
||||
phabricator_time_format($user)));
|
||||
}
|
||||
|
||||
function _phabricator_time_format($user) {
|
||||
function phabricator_time_format($user) {
|
||||
$prefs = $user->loadPreferences();
|
||||
|
||||
$pref = $prefs->getPreference(
|
||||
|
|
Loading…
Reference in a new issue