@$dom->loadHTML($response);
$y = @simplexml_import_dom($dom);
if (!isset($y->body)) return;
+ // @TODO Super-ugly style???
$xml = $y->body->center->table->tr->td->pre->a->attributes();
if (isset($xml['href'])) {
return strval($xml['href']);
}
}
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('PtitUrl (%s)', $this->shortenerName),
- 'version' => STATUSNET_VERSION,
+ 'version' => GNUSOCIAL_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:PtitUrl',
'rawdescription' =>