aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:58:36 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:58:36 +0000
commit53b7f5e7715ea3c71f525df77d74641e5220a9a6 (patch)
tree72dfa7b6935e6dbfcef9f78a785ddb739c6d68b5 /mod/sitepages
parent6e51bcd2d33417f529da15baa5a413ebfc0ca993 (diff)
downloadelgg-53b7f5e7715ea3c71f525df77d74641e5220a9a6.tar.gz
elgg-53b7f5e7715ea3c71f525df77d74641e5220a9a6.tar.bz2
Fixes #2360: page_draw => elgg_view_page in core + bundled plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7210 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages')
-rw-r--r--mod/sitepages/index.php2
-rw-r--r--mod/sitepages/start.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/sitepages/index.php b/mod/sitepages/index.php
index ff21ec97f..5b575ef37 100644
--- a/mod/sitepages/index.php
+++ b/mod/sitepages/index.php
@@ -36,4 +36,4 @@ $sidebar = elgg_view('sitepages/sidebar');
$sidebar .= elgg_view('sitepages/members', array('members' => $members));
$content = elgg_view_layout('frontpage', $content, $sidebar);
-page_draw(null, $content);
+echo elgg_view_page(null, $content);
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php
index ea996e099..fb562b631 100644
--- a/mod/sitepages/start.php
+++ b/mod/sitepages/start.php
@@ -73,7 +73,7 @@ function sitepages_custom_index() {
//set_context('sitepages:front');
//if ($contents = elgg_view('sitepages/custom_frontpage')) {
- // page_draw(FALSE, $contents);
+ // echo elgg_view_page(FALSE, $contents);
// set_context($context);
// return TRUE to tell index.php we've got its content right here.
@@ -136,7 +136,7 @@ function sitepages_page_handler($page) {
break;
}
- page_draw($title, $content);
+ echo elgg_view_page($title, $content);
}