Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
293
Merge Requests
293
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
2b9d04d5
Commit
2b9d04d5
authored
Mar 09, 2006
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-bug
#51522
by m3avrck, node teasers are empty
parent
c9c46e2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/node.module
modules/node.module
+3
-3
modules/node/node.module
modules/node/node.module
+3
-3
No files found.
modules/node.module
View file @
2b9d04d5
...
...
@@ -156,7 +156,7 @@ function node_teaser($body, $format = NULL) {
$delimiter
=
strpos
(
$body
,
'<!--break-->'
);
// If the size is zero, and there is no delimiter, the entire body is the teaser.
if
(
$size
==
0
&&
$delimiter
===
false
)
{
if
(
$size
==
0
&&
$delimiter
===
FALSE
)
{
return
$body
;
}
...
...
@@ -165,13 +165,13 @@ 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
;
}
}
// If a valid delimiter has been specified, use it to chop of the teaser.
if
(
$delimiter
>=
0
)
{
if
(
$delimiter
!==
FALSE
)
{
return
substr
(
$body
,
0
,
$delimiter
);
}
...
...
modules/node/node.module
View file @
2b9d04d5
...
...
@@ -156,7 +156,7 @@ function node_teaser($body, $format = NULL) {
$delimiter
=
strpos
(
$body
,
'<!--break-->'
);
// If the size is zero, and there is no delimiter, the entire body is the teaser.
if
(
$size
==
0
&&
$delimiter
===
false
)
{
if
(
$size
==
0
&&
$delimiter
===
FALSE
)
{
return
$body
;
}
...
...
@@ -165,13 +165,13 @@ 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
;
}
}
// If a valid delimiter has been specified, use it to chop of the teaser.
if
(
$delimiter
>=
0
)
{
if
(
$delimiter
!==
FALSE
)
{
return
substr
(
$body
,
0
,
$delimiter
);
}
...
...
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