mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-18 13:54:01 +08:00
fix showing flash message
This commit is contained in:
parent
c81ee6ecf3
commit
65b0109d39
@ -102,11 +102,9 @@ if (! function_exists('bs_footer')) {
|
||||
echo "<script type=\"text/javascript\" src=\"$script\"></script>";
|
||||
}
|
||||
|
||||
if (Session::has('msg')): ?>
|
||||
<script>
|
||||
toastr.info('{{ Session::pull('msg') }}');
|
||||
</script>
|
||||
<?php endif;
|
||||
if (Session::has('msg')) {
|
||||
echo "<script>toastr.info('".Session::pull('msg')."');</script>";
|
||||
}
|
||||
|
||||
echo '<script>'.Option::get("custom_js").'</script>';
|
||||
}
|
||||
@ -188,7 +186,7 @@ if (! function_exists('menv')) {
|
||||
*/
|
||||
function menv($key, $default = null)
|
||||
{
|
||||
if (function_exists('getenv')) {
|
||||
if (function_exists('putenv') && function_exists('getenv')) {
|
||||
// try to read by getenv()
|
||||
$value = getenv($key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user