Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -510,7 +510,7 @@ |
511 | 511 | foreach ( $myWgHooks as $hook => $hooks ) { |
512 | 512 | $arr = array( |
513 | 513 | 'name' => $hook, |
514 | | - 'subscribers' => $hooks, |
| 514 | + 'subscribers' => array_map( array( 'SpecialVersion', 'arrayToString' ), $hooks ), |
515 | 515 | ); |
516 | 516 | |
517 | 517 | $this->getResult()->setIndexedTagName( $arr['subscribers'], 's' ); |
Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -564,9 +564,10 @@ |
565 | 565 | * |
566 | 566 | * @return Mixed |
567 | 567 | */ |
568 | | - static function arrayToString( $list ) { |
569 | | - if( is_array( $list ) && count( $list ) == 1 ) |
| 568 | + public static function arrayToString( $list ) { |
| 569 | + if( is_array( $list ) && count( $list ) == 1 ) { |
570 | 570 | $list = $list[0]; |
| 571 | + } |
571 | 572 | if( is_object( $list ) ) { |
572 | 573 | $class = get_class( $list ); |
573 | 574 | return "($class)"; |