summaryrefslogtreecommitdiff
path: root/modules/page.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/page.module')
-rw-r--r--modules/page.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/page.module b/modules/page.module
index 245eb2220..37534ad49 100644
--- a/modules/page.module
+++ b/modules/page.module
@@ -96,7 +96,7 @@ function page_link($type) {
return $links;
}
-function page_content($node) {
+function page_content($node, $main = 0) {
/*
** Extract the page body. If body is dynamic (using PHP code), the body
** will be generated.
@@ -104,7 +104,7 @@ function page_content($node) {
if ($node->format == 0) {
// HTML type
- $node = node_prepare($node);
+ $node = node_prepare($node, $main);
}
else {
// PHP type
@@ -118,7 +118,7 @@ function page_content($node) {
function page_view($node, $main = 0, $page = 0) {
// prepare the node content
- $node = page_content($node);
+ $node = page_content($node, $main);
// print the node
return theme("node", $node, $main, $page);
}