aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-13 17:48:14 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-13 17:48:14 +0000
commit6b5efcb9f399746810e1ec74a9c4dc2e236d82a9 (patch)
tree932fd6351e6fc52a2d74b06f2d62eb19c42042c2
parentd597cef86679c3924e07fc3074cd2e2fdaab8301 (diff)
downloadelgg-6b5efcb9f399746810e1ec74a9c4dc2e236d82a9.tar.gz
elgg-6b5efcb9f399746810e1ec74a9c4dc2e236d82a9.tar.bz2
Messages and exceptions, working merrily together. Aww.
git-svn-id: https://code.elgg.org/elgg/trunk@28 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php4
-rw-r--r--engine/start.php19
-rw-r--r--views/default/pageshell.php4
3 files changed, 14 insertions, 13 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 7f98954a4..ab0bf8877 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -121,7 +121,7 @@
return elgg_view('pageshell', array(
'title' => $title,
'body' => $body,
- 'messages' => system_messages()
+ 'messages' => system_messages(null,"")
)
);
@@ -419,7 +419,7 @@
function __elgg_php_exception_handler($exception) {
$body = elgg_view("messages/exceptions/exception",array('object' => $exception));
- echo page_draw("Exception", $body);
+ echo page_draw("We've encountered a problem.", $body);
}
diff --git a/engine/start.php b/engine/start.php
index 73a1e6b2d..5e9093fae 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -32,14 +32,6 @@
// Register the error handler
set_error_handler('__elgg_php_error_handler');
set_exception_handler('__elgg_php_exception_handler');
-
- /**
- * Load the system settings
- */
-
- if (!@include_once(dirname(__FILE__) . "/settings.php")) { // Global settings
- throw new InstallationException("Settings file is missing");
- }
/**
* If there are basic issues with the way the installation is formed, don't bother trying
@@ -48,12 +40,21 @@
if (sanitised()) { // Begin portion for sanitised installs only
+ /**
+ * Load the system settings
+ */
+
+ if (!@include_once(dirname(__FILE__) . "/settings.php")) { // Global settings
+ throw new InstallationException("Elgg could not load the settings file.");
+ }
+
+
/**
* Load and initialise the database
*/
if (!@include_once(dirname(__FILE__) . "/lib/database.php")) // Database connection
- throw new InstallationException("Could not load the main Elgg database library.");
+ throw new InstallationException("Elgg could not load the main Elgg database library.");
/**
diff --git a/views/default/pageshell.php b/views/default/pageshell.php
index eb10afc8e..e8631d83d 100644
--- a/views/default/pageshell.php
+++ b/views/default/pageshell.php
@@ -23,12 +23,12 @@
<title><?php echo $vars['title']; ?></title>
</head>
<body>
+ <h1><?php echo $vars['title']; ?></h1>
<?php
- echo elgg_view('messages/list', array('object' => 'messages'));
+ echo elgg_view('messages/list', array('object' => $vars['messages']));
?>
- <h1><?php echo $vars['title']; ?></h1>
<?php echo $vars['body']; ?>
</body>
</html> \ No newline at end of file