fix getAvailableIcons so uiexample works
Summary: D4027 introduced this along with associated awesomeness. Test Plan: viewed uiexample and saw some actions. also no more errors. Reviewers: epriestley Reviewed By: epriestley CC: chad, aran, Korvin Differential Revision: https://secure.phabricator.com/D4066
This commit is contained in:
@@ -129,11 +129,12 @@ final class PhabricatorActionView extends AphrontView {
|
|||||||
$results = array();
|
$results = array();
|
||||||
$prefix = 'action-';
|
$prefix = 'action-';
|
||||||
foreach ($manifest['sprites'] as $sprite) {
|
foreach ($manifest['sprites'] as $sprite) {
|
||||||
if (preg_match('/-(white|grey)$/', $sprite)) {
|
$name = $sprite['name'];
|
||||||
|
if (preg_match('/-(white|grey)$/', $name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!strncmp($sprite, $prefix, strlen($prefix))) {
|
if (!strncmp($name, $prefix, strlen($prefix))) {
|
||||||
$results[] = substr($sprite, strlen($prefix));
|
$results[] = substr($name, strlen($prefix));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user