]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added more spacing to error layout
authorcash <cash.costello@gmail.com>
Tue, 20 Dec 2011 01:49:30 +0000 (20:49 -0500)
committercash <cash.costello@gmail.com>
Tue, 20 Dec 2011 01:49:30 +0000 (20:49 -0500)
engine/lib/pagehandler.php
views/default/css/elements/layout.php
views/default/page/layouts/error.php

index 16be6e3b2855fdbec972071f34f129068c70dc30..ffcfc5b6a44e241b0b224b143008f0e980ee03d9 100644 (file)
@@ -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
index 42d898439b9316ec65117756655e890780e785a4..25a2bffb7f052d94b87c1cb0397d695a1a350140 100644 (file)
@@ -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;
index 5b31099648a5690776ae77f10bdde1a5c068fa17..cdce28a8e855400008839a18ccb9ad89e0590ccc 100644 (file)
@@ -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);