Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/icon/PhabricatorProjectIconSet.php
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | foreach ($config as $idx => $value) { | ||||
)); | )); | ||||
if (!preg_match('/^[a-z]{1,32}\z/', $value['key'])) { | if (!preg_match('/^[a-z]{1,32}\z/', $value['key'])) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 '. | 'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 '. | ||||
'characters long and contain only lowercase letters. For example, '. | 'characters long and contain only lowercase letters. For example, '. | ||||
'"%s" and "%s" are reasonable keys.', | '"%s" and "%s" are reasonable keys.', | ||||
$value['key'], | |||||
'tag', | 'tag', | ||||
'group')); | 'group')); | ||||
} | } | ||||
$special = idx($value, 'special'); | $special = idx($value, 'special'); | ||||
$valid = array( | $valid = array( | ||||
self::SPECIAL_MILESTONE => true, | self::SPECIAL_MILESTONE => true, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |