mirror of
https://github.com/friendica/friendica
synced 2024-11-14 03:42:53 +00:00
cleanup sysmsg
This commit is contained in:
parent
b38f875732
commit
2af943d752
2 changed files with 6 additions and 4 deletions
|
@ -36,9 +36,7 @@ if(strlen($a->module)) {
|
||||||
$a->module_loaded = true;
|
$a->module_loaded = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// TODO
|
notice( t('Page not found' ) . EOL);
|
||||||
// search builtin function module table, else
|
|
||||||
// return 403, 404, etc. Right now unresolved pages return blank.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +83,7 @@ if($a->module_loaded) {
|
||||||
// report anything important happening
|
// report anything important happening
|
||||||
|
|
||||||
if(x($_SESSION,'sysmsg')) {
|
if(x($_SESSION,'sysmsg')) {
|
||||||
$a->page['content'] = "<div class=\"error-message\">{$_SESSION['sysmsg']}</div>\r\n"
|
$a->page['content'] = "<div id=\"sysmsg\" class=\"error-message\">{$_SESSION['sysmsg']}</div>\r\n"
|
||||||
. $a->page['content'];
|
. $a->page['content'];
|
||||||
unset($_SESSION['sysmsg']);
|
unset($_SESSION['sysmsg']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,10 @@ img {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sysmsg {
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #FEFEFE;
|
background: #FEFEFE;
|
||||||
color: #444444;
|
color: #444444;
|
||||||
|
|
Loading…
Reference in a new issue