mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use built in method to render a string with Blade (#13688)
This commit is contained in:
@@ -10,6 +10,7 @@ use Gate;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Util\Debug;
|
||||
use LibreNMS\Util\Graph;
|
||||
@@ -166,7 +167,7 @@ class DeviceController extends Controller
|
||||
foreach (array_values(Arr::wrap(Config::get('html.device.links'))) as $index => $link) {
|
||||
$device_links['custom' . ($index + 1)] = [
|
||||
'icon' => $link['icon'] ?? 'fa-external-link',
|
||||
'url' => view(['template' => $link['url']], ['device' => $device])->__toString(),
|
||||
'url' => Blade::render($link['url'], ['device' => $device]),
|
||||
'title' => $link['title'],
|
||||
'external' => $link['external'] ?? true,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user