mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Fix PhabricatorActionView::getAvailableIcons
Summary: `getAvailableIcons` parses icon(s).json, which has recently been pluralized in D5890. Test Plan: /uiexample/view/PhabricatorActionListExample/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5902
This commit is contained in:
parent
57ca8de61c
commit
e9e3a28930
1 changed files with 2 additions and 2 deletions
|
@ -134,12 +134,12 @@ final class PhabricatorActionView extends AphrontView {
|
|||
|
||||
public static function getAvailableIcons() {
|
||||
$root = dirname(phutil_get_library_root('phabricator'));
|
||||
$path = $root.'/resources/sprite/manifest/icon.json';
|
||||
$path = $root.'/resources/sprite/manifest/icons.json';
|
||||
$data = Filesystem::readFile($path);
|
||||
$manifest = json_decode($data, true);
|
||||
|
||||
$results = array();
|
||||
$prefix = 'action-';
|
||||
$prefix = 'icons-';
|
||||
foreach ($manifest['sprites'] as $sprite) {
|
||||
$name = $sprite['name'];
|
||||
if (preg_match('/-(white|grey)$/', $name)) {
|
||||
|
|
Loading…
Reference in a new issue