aboutsummaryrefslogtreecommitdiff
path: root/mod/test
diff options
context:
space:
mode:
Diffstat (limited to 'mod/test')
-rw-r--r--mod/test/index.php4
-rw-r--r--mod/test/start.php4
2 files changed, 2 insertions, 6 deletions
diff --git a/mod/test/index.php b/mod/test/index.php
index ffa4387e1..a8a9d347f 100644
--- a/mod/test/index.php
+++ b/mod/test/index.php
@@ -5,7 +5,7 @@
global $CONFIG;
//var_export($CONFIG);
-
- echo page_draw("Test plugin","");
+ $body = elgg_view("test/testplugin/pageshell");
+ page_draw("Test plugin",$body);
?> \ No newline at end of file
diff --git a/mod/test/start.php b/mod/test/start.php
index f406b8abb..345ca7588 100644
--- a/mod/test/start.php
+++ b/mod/test/start.php
@@ -13,10 +13,6 @@
function test_init($event, $object_type, $object = null) {
global $CONFIG;
-
- // Let's add to the pageshell view.
- extend_view("pageshell", "testplugin/pageshell");
- set_view_location("testplugin/pageshell",$CONFIG->pluginspath . "test/views/");
// Test menu item
add_menu("Test plugin",$CONFIG->wwwroot . "mod/test/",array(