Debugging log fix.
This commit is contained in:
parent
f6d4d00e02
commit
b3da5bdaa3
@ -271,8 +271,8 @@ class OStatusPlugin extends Plugin
|
|||||||
PREG_OFFSET_CAPTURE);
|
PREG_OFFSET_CAPTURE);
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
common_log(LOG_ERR, __METHOD__ . ': Error parsing webfinger IDs from text (preg_last_error=='.preg_last_error().').');
|
common_log(LOG_ERR, __METHOD__ . ': Error parsing webfinger IDs from text (preg_last_error=='.preg_last_error().').');
|
||||||
} else {
|
} elseif (count($wmatches)) {
|
||||||
common_debug(sprintf('Found %i matches for WebFinger IDs: %s', count($wmatches), _ve($wmatches)));
|
common_debug(sprintf('Found %d matches for WebFinger IDs: %s', count($wmatches), _ve($wmatches)));
|
||||||
}
|
}
|
||||||
return $wmatches[1];
|
return $wmatches[1];
|
||||||
}
|
}
|
||||||
@ -293,8 +293,8 @@ class OStatusPlugin extends Plugin
|
|||||||
PREG_OFFSET_CAPTURE);
|
PREG_OFFSET_CAPTURE);
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
common_log(LOG_ERR, __METHOD__ . ': Error parsing profile URL mentions from text (preg_last_error=='.preg_last_error().').');
|
common_log(LOG_ERR, __METHOD__ . ': Error parsing profile URL mentions from text (preg_last_error=='.preg_last_error().').');
|
||||||
} else {
|
} elseif (count($wmatches)) {
|
||||||
common_debug(sprintf('Found %i matches for profile URL mentions: %s', count($wmatches), _ve($wmatches)));
|
common_debug(sprintf('Found %d matches for profile URL mentions: %s', count($wmatches), _ve($wmatches)));
|
||||||
}
|
}
|
||||||
return $wmatches[1];
|
return $wmatches[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user