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>";
|
echo "<script type=\"text/javascript\" src=\"$script\"></script>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Session::has('msg')): ?>
|
if (Session::has('msg')) {
|
||||||
<script>
|
echo "<script>toastr.info('".Session::pull('msg')."');</script>";
|
||||||
toastr.info('{{ Session::pull('msg') }}');
|
}
|
||||||
</script>
|
|
||||||
<?php endif;
|
|
||||||
|
|
||||||
echo '<script>'.Option::get("custom_js").'</script>';
|
echo '<script>'.Option::get("custom_js").'</script>';
|
||||||
}
|
}
|
||||||
|
|
@ -188,7 +186,7 @@ if (! function_exists('menv')) {
|
||||||
*/
|
*/
|
||||||
function menv($key, $default = null)
|
function menv($key, $default = null)
|
||||||
{
|
{
|
||||||
if (function_exists('getenv')) {
|
if (function_exists('putenv') && function_exists('getenv')) {
|
||||||
// try to read by getenv()
|
// try to read by getenv()
|
||||||
$value = getenv($key);
|
$value = getenv($key);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user