Return applications in application order

Summary:
By default, order applications in application order. See discussion in D4708.

Principally, this is intended to make sure that application event handlers are registered in order, and thus fire in order.

Test Plan:
Looked at /applications/, homepage tiles, verified they both still work.

I didn't actually test the event handler bit since it's fairly complicated to test blind; D4708 should provide a test case.

Reviewers: btrahan, Afaque_Hussain

Reviewed By: Afaque_Hussain

CC: aran

Differential Revision: https://secure.phabricator.com/D4791
This commit is contained in:
epriestley
2013-02-03 09:26:25 -08:00
parent 5459af3bdd
commit 57ff0a80aa
3 changed files with 21 additions and 22 deletions

View File

@@ -65,8 +65,6 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
continue;
}
$tile_group = msort($tile_group, 'getApplicationOrder');
$is_small_tiles = ($tile_display == PhabricatorApplication::TILE_SHOW) ||
($tile_display == PhabricatorApplication::TILE_HIDE);