$author = isset ( $extension['author'] ) ? $extension['author'] : array();
$extDescAuthor = "<td>$description</td>
- <td>" . $this->listToText( (array)$author, false ) . "</td>
+ <td>" . $this->listAuthors( $author, false ) . "</td>
</tr>\n";
return $extNameVer . $extDescAuthor;
"<span style='display:none'>visited from $ip</span>";
}
+ /**
+ * Return a formatted unsorted list of authors
+ *
+ * @param $authors mixed: string or array of strings
+ * @return String: HTML fragment
+ */
+ function listAuthors( $authors ) {
+ $list = array();
+ foreach( (array)$authors as $item ) {
+ if( $item == '...' ) {
+ $list[] = wfMsg( 'version-poweredby-others' );
+ } else {
+ $list[] = $item;
+ }
+ }
+ return $this->listToText( $list, false );
+ }
+
/**
* Convert an array of items into a list for display.
*