mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
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:
parent
7154bea03c
commit
d2568ac463
1 changed files with 4 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue