Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
427a71f8
Commit
427a71f8
authored
May 19, 2000
by
Dries
Browse files
Fixed a bug in displayRelatedLinks(), the function that displays that
parses an article to extract related links.
parent
bbfc1f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.inc
View file @
427a71f8
...
...
@@ -89,7 +89,7 @@ function displayRelatedLinks($theme, $sid = 0) {
### parse story for A HREF-tags:
$text
=
"
$story->abstract
$story->comments
$story->article
"
;
while
(
$text
=
stristr
(
$text
,
"<A HREF="
))
{
$link
=
substr
(
$text
,
0
,
strpos
(
$text
,
"</a>"
)
+
4
);
$link
=
substr
(
$text
,
0
,
strpos
(
strtolower
(
$text
)
,
"</a>"
)
+
4
);
$text
=
stristr
(
$text
,
"</A>"
);
if
(
!
stristr
(
$link
,
"mailto:"
))
$content
.
=
"<LI>
$link
</LI>"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment