Commit cb2850f5 authored by Steven Wittens's avatar Steven Wittens

Fixed a bug in the output: there was always a ruler under the story-abstract,...

Fixed a bug in the output: there was always a ruler under the story-abstract, even if it was an abstract-only story.
parent b5748332
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment