1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

Fix a reset() thingie.

This commit is contained in:
epriestley 2011-02-04 18:58:52 -08:00
parent 94dd5c6917
commit a35ae4c2a0

View file

@ -126,9 +126,10 @@ class PhabricatorConduitConsoleController
foreach ($classes as $method_class) { foreach ($classes as $method_class) {
$method_name = ConduitAPIMethod::getAPIMethodNameFromClassName( $method_name = ConduitAPIMethod::getAPIMethodNameFromClassName(
$method_class); $method_class);
$parts = explode('.', $method_name);
$method_names[] = array( $method_names[] = array(
'full_name' => $method_name, 'full_name' => $method_name,
'group_name' => reset(explode('.', $method_name)), 'group_name' => reset($parts),
); );
} }
$method_names = igroup($method_names, 'group_name'); $method_names = igroup($method_names, 'group_name');