Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngine.php
Show First 20 Lines • Show All 2,542 Lines • ▼ Show 20 Lines | foreach ($extensions as $extension) { | ||||
foreach ($extension_groups as $group) { | foreach ($extension_groups as $group) { | ||||
$key = $group->getKey(); | $key = $group->getKey(); | ||||
if (isset($map[$key])) { | if (isset($map[$key])) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Extension "%s" defines a bulk edit group with the same key '. | 'Extension "%s" defines a bulk edit group with the same key '. | ||||
'("%s") as the main editor or another extension. Each bulk '. | '("%s") as the main editor or another extension. Each bulk '. | ||||
'edit group must have a unique key.')); | 'edit group must have a unique key.', | ||||
get_class($extension), | |||||
$key)); | |||||
} | } | ||||
$map[$key] = $group; | $map[$key] = $group; | ||||
} | } | ||||
} | } | ||||
return $map; | return $map; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |