Fix spelling :)

This commit is contained in:
Garvin Hicking 2008-01-20 14:16:06 +00:00
parent 8c8e9ad42c
commit e317fd54ee

View File

@ -493,9 +493,9 @@ function fetchPingbackData( &$comment) {
} }
// Max amount of characters fetched from the page doing a pingback: // Max amount of characters fetched from the page doing a pingback:
$fetchPageMaxLenght = 200; $fetchPageMaxLength = 200;
if (isset($serendipity['pingbackFetchPageMaxLength'])){ if (isset($serendipity['pingbackFetchPageMaxLength'])){
$fetchPageMaxLenght = $serendipity['pingbackFetchPageMaxLength']; $fetchPageMaxLength = $serendipity['pingbackFetchPageMaxLength'];
} }
require_once S9Y_PEAR_PATH . 'HTTP/Request.php'; require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$url = $comment['url']; $url = $comment['url'];
@ -530,7 +530,7 @@ function fetchPingbackData( &$comment) {
$body = trackback_body_strip($body); $body = trackback_body_strip($body);
// truncate the text to 200 chars // truncate the text to 200 chars
$arr = str_split($body, $fetchPageMaxLenght); $arr = str_split($body, $fetchPageMaxLength);
$body = $arr[0]; $body = $arr[0];
$comment['comment'] = $body . '[..]'; $comment['comment'] = $body . '[..]';