aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-19 20:49:30 -0500
committercash <cash.costello@gmail.com>2011-12-19 20:49:30 -0500
commitf003120fba687d14630b690c50e2316f717eca7d (patch)
tree7077014b8a2a61bdfc6d4544027bdafe06a516c3
parentc2cddede38dbb29d53167e296981a678759e0648 (diff)
downloadelgg-f003120fba687d14630b690c50e2316f717eca7d.tar.gz
elgg-f003120fba687d14630b690c50e2316f717eca7d.tar.bz2
added more spacing to error layout
-rw-r--r--engine/lib/pagehandler.php2
-rw-r--r--views/default/css/elements/layout.php3
-rw-r--r--views/default/page/layouts/error.php6
3 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 16be6e3b2..ffcfc5b6a 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -114,6 +114,8 @@ function elgg_unregister_page_handler($handler) {
/**
* Serve an error page
*
+ * @todo not sending status codes yet
+ *
* @param string $hook The name of the hook
* @param string $type The type of the hook
* @param bool $result The current value of the hook
diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php
index 42d898439..25a2bffb7 100644
--- a/views/default/css/elements/layout.php
+++ b/views/default/css/elements/layout.php
@@ -81,6 +81,9 @@
.elgg-layout-two-sidebar {
background: transparent url(<?php echo elgg_get_site_url(); ?>_graphics/two_sidebar_background.gif) repeat-y right top;
}
+.elgg-layout-error {
+ margin-top: 20px;
+}
.elgg-sidebar {
position: relative;
padding: 20px 10px;
diff --git a/views/default/page/layouts/error.php b/views/default/page/layouts/error.php
index 5b3109964..cdce28a8e 100644
--- a/views/default/page/layouts/error.php
+++ b/views/default/page/layouts/error.php
@@ -3,4 +3,10 @@
* Error layout
*/
+$class = 'elgg-layout-error';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
+$vars['class'] = $class;
+
echo elgg_view('page/layouts/one_column', $vars);