| @@ 227-234 (lines=8) @@ | ||
| 224 | } |
|
| 225 | ||
| 226 | $addon_info->author = array(); |
|
| 227 | foreach($author_list as $author) |
|
| 228 | { |
|
| 229 | $author_obj = new stdClass(); |
|
| 230 | $author_obj->name = $author->name->body; |
|
| 231 | $author_obj->email_address = $author->attrs->email_address; |
|
| 232 | $author_obj->homepage = $author->attrs->link; |
|
| 233 | $addon_info->author[] = $author_obj; |
|
| 234 | } |
|
| 235 | ||
| 236 | // Expand the variable order |
|
| 237 | if($xml_obj->extra_vars) |
|
| @@ 585-592 (lines=8) @@ | ||
| 582 | } |
|
| 583 | ||
| 584 | $theme_info->publisher = array(); |
|
| 585 | foreach($publisher_list as $publisher) |
|
| 586 | { |
|
| 587 | $publisher_obj = new stdClass(); |
|
| 588 | $publisher_obj->name = $publisher->name->body; |
|
| 589 | $publisher_obj->email_address = $publisher->attrs->email_address; |
|
| 590 | $publisher_obj->homepage = $publisher->attrs->link; |
|
| 591 | $theme_info->publisher[] = $publisher_obj; |
|
| 592 | } |
|
| 593 | ||
| 594 | $layout = $xml_obj->layout; |
|
| 595 | $layout_path = $layout->directory->attrs->path; |
|
| @@ 775-782 (lines=8) @@ | ||
| 772 | if(!is_array($xml_obj->author)) $author_list[] = $xml_obj->author; |
|
| 773 | else $author_list = $xml_obj->author; |
|
| 774 | ||
| 775 | foreach($author_list as $author) |
|
| 776 | { |
|
| 777 | $author_obj = new stdClass(); |
|
| 778 | $author_obj->name = $author->name->body; |
|
| 779 | $author_obj->email_address = $author->attrs->email_address; |
|
| 780 | $author_obj->homepage = $author->attrs->link; |
|
| 781 | $module_info->author[] = $author_obj; |
|
| 782 | } |
|
| 783 | } |
|
| 784 | else |
|
| 785 | { |
|
| @@ 1163-1170 (lines=8) @@ | ||
| 1160 | if(!is_array($xml_obj->author)) $author_list[] = $xml_obj->author; |
|
| 1161 | else $author_list = $xml_obj->author; |
|
| 1162 | ||
| 1163 | foreach($author_list as $author) |
|
| 1164 | { |
|
| 1165 | $author_obj = new stdClass(); |
|
| 1166 | $author_obj->name = $author->name->body; |
|
| 1167 | $author_obj->email_address = $author->attrs->email_address; |
|
| 1168 | $author_obj->homepage = $author->attrs->link; |
|
| 1169 | $skin_info->author[] = $author_obj; |
|
| 1170 | } |
|
| 1171 | // List extra vars |
|
| 1172 | if($xml_obj->extra_vars) |
|
| 1173 | { |
|