forked from science-ation/science-ation
Make the message look a bit nicer (output the message if we have it, instead of print_r'ing the whole result)
This commit is contained in:
parent
2f38386967
commit
dcd9e825ea
@ -191,6 +191,9 @@ case 'award_upload':
|
||||
echo notice("{$fair['name']} server said: <pre>".join("\n", $data['notice'])."</pre>");
|
||||
else if(is_array($data['message']))
|
||||
echo notice("{$fair['name']} server said: <pre>".join("\n", $data['message'])."</pre>");
|
||||
else if($data['message']) {
|
||||
echo notice("{$fair['name']} server said: <pre>".$data['message']."</pre>");
|
||||
}
|
||||
else
|
||||
echo notice("{$fair['name']} server said: <pre>".htmlspecialchars(print_r($data,true))."</pre>");
|
||||
echo happy(i18n("Upload completed successfully"));
|
||||
|
Loading…
Reference in New Issue
Block a user