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
c928f9c1
Commit
c928f9c1
authored
Jun 01, 2005
by
Steven Wittens
Browse files
-
#18836
: Cleanup teaser generation code, and refine handling of PHP code teasers.
parent
5257b684
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
c928f9c1
...
...
@@ -172,7 +172,7 @@ function node_teaser($body, $format = NULL) {
// parse errors.
if
(
isset
(
$format
))
{
$filters
=
filter_list_format
(
$format
);
if
(
isset
(
$filters
[
'filter/1'
])
&&
strpos
(
$body
,
'<?'
)
!=
false
)
{
if
(
isset
(
$filters
[
'filter/1'
])
&&
strpos
(
$body
,
'<?'
)
!=
=
false
)
{
return
$body
;
}
}
...
...
modules/node/node.module
View file @
c928f9c1
...
...
@@ -172,7 +172,7 @@ function node_teaser($body, $format = NULL) {
// parse errors.
if
(
isset
(
$format
))
{
$filters
=
filter_list_format
(
$format
);
if
(
isset
(
$filters
[
'filter/1'
])
&&
strpos
(
$body
,
'<?'
)
!=
false
)
{
if
(
isset
(
$filters
[
'filter/1'
])
&&
strpos
(
$body
,
'<?'
)
!=
=
false
)
{
return
$body
;
}
}
...
...
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