Fixed a bug in the output: there was always a ruler under the story-abstract, even if it was an abstract-only story.
parent
b574833210
commit
cb2850f5c9
|
@ -31,7 +31,7 @@ function story_help() {
|
|||
|
||||
function story_view($node, $main = 0) {
|
||||
global $theme;
|
||||
$node->body = ($main ? $node->abstract : "$node->abstract<HR>$node->body");
|
||||
$node->body = ((!$main) && ($node->body)) ? "$node->abstract<HR>$node->body" : $node->abstract;
|
||||
$theme->node($node, $main);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ function story_help() {
|
|||
|
||||
function story_view($node, $main = 0) {
|
||||
global $theme;
|
||||
$node->body = ($main ? $node->abstract : "$node->abstract<HR>$node->body");
|
||||
$node->body = ((!$main) && ($node->body)) ? "$node->abstract<HR>$node->body" : $node->abstract;
|
||||
$theme->node($node, $main);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue