Pages: Some minor improvements (I guess) :)

This commit is contained in:
Michael Vogel 2012-03-15 21:15:40 +01:00
parent 96d8df11f7
commit 61edc9ff5e

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);