New addon "pages" and a small change to the facebook addon #18

Merged
annando merged 7 commits from master into master 2012-03-15 23:29:33 +01:00
Showing only changes of commit 61edc9ff5e - Show all commits

View file

@ -21,6 +21,8 @@ function pages_iscommunity($url, &$pagelist) {
// When too old or not found fetch the status from the profile // When too old or not found fetch the status from the profile
$ch = curl_init(); $ch = curl_init();
$url = str_replace("/profile/","/hcard/", $url);
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);