aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php23
-rw-r--r--engine/start.php2
2 files changed, 22 insertions, 3 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);
}
diff --git a/engine/start.php b/engine/start.php
index 03274ae4b..73a1e6b2d 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -22,7 +22,7 @@
}
if (!@include_once(dirname(__FILE__) . "/lib/elgglib.php")) { // Main Elgg library
- throw new InstallationException("Could not load the main Elgg library.");
+ throw new InstallationException("Elgg could not load its main library.");
}
/**