1
1
Fork 0

Poke is fixed (#5689)

* Fix: Poke hasn't worked. It does work now partially

* Poke are now displayed good again

* removed code
This commit is contained in:
Michael Vogel 2018-08-28 19:38:28 +00:00 committed by Hypolite Petovan
commit 99b8f85624
2 changed files with 19 additions and 21 deletions

View file

@ -229,12 +229,11 @@ function localize_item(&$item)
$xmlhead = "<" . "?xml version='1.0' encoding='UTF-8' ?" . ">";
$obj = XML::parseString($xmlhead.$item['object']);
$links = XML::parseString($xmlhead."<links>".unxmlify($obj->link)."</links>");
$Bname = $obj->title;
$Blink = "";
$Bphoto = "";
foreach ($links->link as $l) {
foreach ($obj->link as $l) {
$atts = $l->attributes();
switch ($atts['rel']) {
case "alternate": $Blink = $atts['href'];