aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-13 16:42:41 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-13 16:42:41 +0000
commit7b8a289c6b0af262de82efa607e838e37a236f8a (patch)
treeae0af526d4b4390d0fb36a429f35015a15cc86b5 /engine/lib/elgglib.php
parent659f6376ca5e0d184585ef40dfc2e3c5256e4f17 (diff)
downloadelgg-7b8a289c6b0af262de82efa607e838e37a236f8a.tar.gz
elgg-7b8a289c6b0af262de82efa607e838e37a236f8a.tar.bz2
Further message handling in the template
git-svn-id: https://code.elgg.org/elgg/trunk@26 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 63baf16d5..7f98954a4 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -107,6 +107,25 @@
return $content;
}
+
+ /**
+ * Returns a representation of a full 'page' (which might be an HTML page, RSS file, etc, depending on the current view)
+ *
+ * @param unknown_type $title
+ * @param unknown_type $body
+ * @return unknown
+ */
+
+ function page_draw($title, $body) {
+
+ return elgg_view('pageshell', array(
+ 'title' => $title,
+ 'body' => $body,
+ 'messages' => system_messages()
+ )
+ );
+
+ }
/**
* Library loading and handling
@@ -399,8 +418,8 @@
function __elgg_php_exception_handler($exception) {
- $body = elgg_view("messages/errors/exception",array('object' => $exception));
- echo elgg_view("pageshell", array("title" => "Exception", "body" => $body));
+ $body = elgg_view("messages/exceptions/exception",array('object' => $exception));
+ echo page_draw("Exception", $body);
}