diff --git a/src/view/layout/PhabricatorActionView.php b/src/view/layout/PhabricatorActionView.php index 10f3a49115..3b94243ee6 100644 --- a/src/view/layout/PhabricatorActionView.php +++ b/src/view/layout/PhabricatorActionView.php @@ -129,11 +129,12 @@ final class PhabricatorActionView extends AphrontView { $results = array(); $prefix = 'action-'; foreach ($manifest['sprites'] as $sprite) { - if (preg_match('/-(white|grey)$/', $sprite)) { + $name = $sprite['name']; + if (preg_match('/-(white|grey)$/', $name)) { continue; } - if (!strncmp($sprite, $prefix, strlen($prefix))) { - $results[] = substr($sprite, strlen($prefix)); + if (!strncmp($name, $prefix, strlen($prefix))) { + $results[] = substr($name, strlen($prefix)); } }