From e9e3a2893095773641e4692633cabd3d06e7e0ee Mon Sep 17 00:00:00 2001 From: Edward Speyer Date: Sat, 11 May 2013 17:38:02 +0100 Subject: [PATCH] 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 --- src/view/layout/PhabricatorActionView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/layout/PhabricatorActionView.php b/src/view/layout/PhabricatorActionView.php index 40564b0809..0b1955ca28 100644 --- a/src/view/layout/PhabricatorActionView.php +++ b/src/view/layout/PhabricatorActionView.php @@ -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)) {