Skip to content
Snippets Groups Projects
Commit 5d32db6d authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: Fix install crash because of error installing dept

If there is a problem installing some of the items with the system, try not
to crash simply because the error is passed into another ::create()
function.
parent 1dce0947
No related branches found
No related tags found
No related merge requests found
......@@ -68,12 +68,14 @@ class Internationalization {
'sequence.yaml' => 'Sequence::__create',
);
$errors = array();
foreach ($models as $yaml=>$m) {
if ($objects = $this->getTemplate($yaml)->getData()) {
foreach ($objects as $o) {
if ($m && is_callable($m))
@call_user_func_array($m, array($o, &$errors));
// TODO: Add a warning to the success page for errors
// found here
$errors = array();
}
}
}
......
......@@ -16,7 +16,7 @@ a { color: #2a67ac; }
#header .info { font-size: 11pt; font-weight: bold; border-bottom: 1px solid #2a67ac; color: #444; text-align: right; float: right; }
#header ul { margin: 0; padding: 0; text-align: right; }
#header ul li { list-style: none; margin: 5px 0 0 0; padding: 0; }
#header ul li a { color: #F3811C; text-decoration: none; }
#header ul li a { color: #F3811C; text-decoration: none; white-space: nowrap; }
#header ul li a:hover { color: #2a67ac; }
#sidebar { width: 180px; padding: 10px; border: 1px solid #C8DDFA; float: right; background: #F7FBFE; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment